Closed free-weaver closed 9 years ago
There's no <!DOCTYPE html> in the script, has this been added when
downloading it?
The start of the script should be
function check_install {
if [ -z "which "$1" 2>/dev/null
" ]
then
executable=$1
shift
while [ -n "$1" ]
do
DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends
-q -y install "$1"
print_info "$1 installed for $executable"
shift
done
else
print_warn "$2 already installed"
fi
}
Does this match your copy?
On Sat, 31 Mar 2012 16:20:53 +0100, free-weaver
reply@reply.github.com
wrote:
Hi Keith,
just tried to run your script on a Debian Squeeze VPS with nginx 1.0.14
and got the following:setup-debian.sh: line 4: syntax error near unexpected token
newline' setup-debian.sh: line 4:
<!DOCTYPE html>'thanks
Reply to this email directly or view it on GitHub: https://github.com/Keith2/lowendscript-ng/issues/1
I think github is to blame, I did a wget on the link in your readme and it did grab setup-debian.sh however, there is only html in it (I think it is one of the github pages :) Perhaps it isn't a good idea to suggest that link for wget.
I have now copied the code directly into a file and on to my vps. It ran with no problems.
Thank you.
Hi Keith,
just tried to run your script on a Debian Squeeze VPS with nginx 1.0.14 and got the following:
setup-debian.sh: line 4: syntax error near unexpected token
newline' setup-debian.sh: line 4:
<!DOCTYPE html>'thanks