aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Longair <mhl@pobox.com>2012-10-01 10:19:55 +0100
committerMark Longair <mhl@pobox.com>2012-10-01 10:19:55 +0100
commit08fa97fb33db1f4af3439bcaffa4a7595a615eab (patch)
tree3720b605128d83f17b6141401ef35540e6f52647
parente800d68e028524660db8edf389862c689afd27b1 (diff)
Fix the rewriting of the example nginx.conf.example file
-rwxr-xr-xbin/pre-install-as-root5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/pre-install-as-root b/bin/pre-install-as-root
index 997dd31bf..9ddd34382 100755
--- a/bin/pre-install-as-root
+++ b/bin/pre-install-as-root
@@ -195,9 +195,8 @@ add_website_to_nginx() {
sed -i "s,/var/www/fixmystreet,$FMS_DIRECTORY," $SITE_FILENAME
if [ $DEFAULT_SERVER = false ]
then
- sed -i 's/listen 80/# listen 80/' $SITE_FILENAME
- sed "/listen 80/i\
- server_name $HOST;
+ sed -i "/listen 80/a\
+\ server_name $HOST;
" $SITE_FILENAME
fi
ln -nsf "$SITE_FILENAME" "$SITE_LINK"