diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-04-07 10:57:12 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-04-07 10:57:12 +0200 |
commit | 9e87646fd61457d8f8a904dcf481f02fc87fff6b (patch) | |
tree | 0649b45f614527fda532ac0ae5476759a3e65b48 /nginx.sh | |
parent | b476edbdf243996f0ccdd21f8675f6fc81edeb84 (diff) |
Fixed nginx conf
Diffstat (limited to 'nginx.sh')
-rwxr-xr-x | nginx.sh | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -43,9 +43,7 @@ cd "$RUBY_DEST/lib/ruby/gems/1.8/gems/" >>$LOG 2>&1 passenger=`ls -d passenger*` cd - >>$LOG 2>&1 servername=`hostname` -ruby_dest=`echo $RUBY_DEST | sed 's/\//\\\//g'` -nginx_dest=`echo $NGINX_DEST | sed 's/\//\\\//g'` -cmd="sed -i -e \"s/PASSENGER/$passenger/;s/SERVERNAME/$servername/;s/RUBY_DEST/$ruby_dest/;s/NGINX_DEST/$nginx_dest/\" ./nginx.conf" && run_cmd "$cmd" "Config" +cmd="sed -i -e \"s,PASSENGER,$passenger,;s,SERVERNAME,$servername,;s,RUBY_DEST,$RUBY_DEST,;s,NGINX_DEST,$NGINX_DEST,\" ./nginx.conf" && run_cmd "$cmd" "Config" cmd="cp ./nginx.conf \"$NGINX_DEST/conf\"" && run_cmd "$cmd" "Copy" cd "$DIR" |