summaryrefslogtreecommitdiff
path: root/nginx.sh
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-04-07 10:57:12 +0200
committerAndreas Maunz <andreas@maunz.de>2011-04-07 10:57:12 +0200
commit9e87646fd61457d8f8a904dcf481f02fc87fff6b (patch)
tree0649b45f614527fda532ac0ae5476759a3e65b48 /nginx.sh
parentb476edbdf243996f0ccdd21f8675f6fc81edeb84 (diff)
Fixed nginx conf
Diffstat (limited to 'nginx.sh')
-rwxr-xr-xnginx.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/nginx.sh b/nginx.sh
index 31e4842..1c87d05 100755
--- a/nginx.sh
+++ b/nginx.sh
@@ -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"