diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-11-16 15:21:07 +0100 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-11-16 15:21:07 +0100 |
commit | 483d87ed8064573f60194f7936701d21f8728e61 (patch) | |
tree | f8ef74d71d1a000760c6e0d1b35792896cb77fee /nginx.sh | |
parent | 69fa1d589bce1d6b17ea9948cce3cb80a7f84819 (diff) |
Fixed PORT to NGINX_PORT
Diffstat (limited to 'nginx.sh')
-rwxr-xr-x | nginx.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -53,11 +53,11 @@ servername=`hostname` $GIT checkout nginx.conf>>$LOG 2>&1 cmd="sed -i -e \"s,PASSENGER,$passenger,;s,SERVERNAME,$servername,;s,RUBY_DEST,$RUBY_DEST,;s,NGINX_DEST,$NGINX_DEST,;s,WWW_DEST,$WWW_DEST,\" ./nginx.conf" && run_cmd "$cmd" "Config" cmd="sed -i -e \"s,USER,`whoami`,\" ./nginx.conf" && run_cmd "$cmd" "User" -PORT=`echo "$PORT" | sed 's/^.//g'` -if [ -z "$PORT" ]; then - PORT=80 +NGINX_PORT=`echo "$NGINX_PORT" | sed 's/^.//g'` +if [ -z "$NGINX_PORT" ]; then + NGINX_PORT=80 fi -cmd="sed -i -e \"s,PORT,$PORT,\" ./nginx.conf" && run_cmd "$cmd" "Port" +cmd="sed -i -e \"s,NGINX_PORT,$NGINX_PORT,\" ./nginx.conf" && run_cmd "$cmd" "NGINX_PORT" cmd="cp ./nginx.conf \"$NGINX_DEST/conf\"" && run_cmd "$cmd" "Copy" if [ ! -f $NGINX_CONF ]; then |