Wrong interpreter specified in install scripts

#1
install.sh and functions.sh have /bin/sh specified as an interpreter. However, on systems, where /bin/sh is a plain Bourne shell (like Solaris 10), installation fails with the message of
install.sh: test: argument expected
because of line 972 in function.sh:
Code:
if [ -e "$LSINSTALL_DIR/bin/lshttpd.dbg" ]; then
All runs fine if installation is invoked by bash install.sh.

Please correct the shebang line in your install scripts to point explicitly to bash.

OS: Solaris 10, 64-bit
LSWS 3.3.17 Standard
 

mistwang

LiteSpeed Staff
#2
Bash may not available by default, even on some solaris distribution. Maybe use

if [ -f ... ]; then

instead to make it compatible with most shell.
 

PSS

Well-Known Member
#3
On CentOS Linux 6.4 64-bit, Litespeed 4.2.2 Std refused to install until I did

yum install glibc.i686

Error was:
/usr/local/lsws/bin/lswsctrl: ./litespeed: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
[ERROR] Failed to start litespeed!
 
Top