summaryrefslogtreecommitdiff
path: root/nginx.sh
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-03-29 13:15:06 +0200
committerAndreas Maunz <andreas@maunz.de>2011-03-29 13:15:06 +0200
commit38e704e23f7f9a8a46bd022f8bdbf904768263d8 (patch)
tree9ef2dc60749954e65354d8d3946602ca8df29212 /nginx.sh
parent0c127b8c425555f9aeee425c3fa390dba677831c (diff)
Nginx fix: Server name replacement
Diffstat (limited to 'nginx.sh')
-rwxr-xr-xnginx.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/nginx.sh b/nginx.sh
index 779a06f..5cd4853 100755
--- a/nginx.sh
+++ b/nginx.sh
@@ -41,8 +41,8 @@ if ! $NGINX_DONE; then
cd "$RUBY_DEST/lib/ruby/gems/1.8/gems/"
passenger=`ls -d passenger*`;
cd -
- servername=`hostname`.`dnsdomainname`
- sed -e "s/PASSENGER/$passenger/;s/SERVERNAME/$servername/" ./nginx.conf > $NGINX_DEST/nginx.conf
+ servername=`hostname`
+ sed -e "s/PASSENGER/$passenger/;s/SERVERNAME/$servername/;s/RUBY_DEST/$RUBY_DEST/" ./nginx.conf > $NGINX_DEST/nginx.conf
fi
cd "$DIR"