summaryrefslogtreecommitdiff
path: root/nginx.sh
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-04-07 15:45:59 +0200
committerAndreas Maunz <andreas@maunz.de>2011-04-07 15:45:59 +0200
commit1e43bd895e9e46bd1570cd80840f6f8cf18761ed (patch)
tree5530dda4d3da2b855c3b7682ccbfd5e8a6659e25 /nginx.sh
parent1fd85dafaa64d0b40e0dc58e8d5bec05444a5105 (diff)
Fixed replacing WWW_DEST
Diffstat (limited to 'nginx.sh')
-rwxr-xr-xnginx.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/nginx.sh b/nginx.sh
index b312e5e..e7ba87f 100755
--- a/nginx.sh
+++ b/nginx.sh
@@ -51,7 +51,7 @@ passenger=`ls -d passenger*`
cd - >>$LOG 2>&1
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,\" ./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;s,WWW_DEST,$WWW_DEST,\" ./nginx.conf" && run_cmd "$cmd" "Config"
cmd="cp ./nginx.conf \"$NGINX_DEST/conf\"" && run_cmd "$cmd" "Copy"
cd "$DIR"