From c814353d0c1228e8924737c213872218f26519f4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 27 Sep 2014 22:07:40 +0100 Subject: [PATCH] Tidying --- install-freedombone.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install-freedombone.sh b/install-freedombone.sh index aaae1a3a..d9817c63 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -2784,7 +2784,7 @@ function install_mediagoblin { echo ' # interprets as an HTML file, etc.)' >> /srv/$MEDIAGOBLIN_DOMAIN_NAME/nginx.conf echo ' add_header X-Content-Type-Options nosniff;' >> /srv/$MEDIAGOBLIN_DOMAIN_NAME/nginx.conf echo '' >> /srv/$MEDIAGOBLIN_DOMAIN_NAME/nginx.conf - echo " server_name mediagoblin.example.org www.mediagoblin.example.org;" >> /srv/$MEDIAGOBLIN_DOMAIN_NAME/nginx.conf + echo " server_name $MEDIAGOBLIN_DOMAIN_NAME;" >> /srv/$MEDIAGOBLIN_DOMAIN_NAME/nginx.conf echo " access_log /var/log/nginx/$MEDIAGOBLIN_DOMAIN_NAME.access.log;" >> /srv/$MEDIAGOBLIN_DOMAIN_NAME/nginx.conf echo " error_log /var/log/nginx/$MEDIAGOBLIN_DOMAIN_NAME.error.log;" >> /srv/$MEDIAGOBLIN_DOMAIN_NAME/nginx.conf echo '' >> /srv/$MEDIAGOBLIN_DOMAIN_NAME/nginx.conf @@ -2823,8 +2823,7 @@ function install_mediagoblin { ln -s /srv/$MEDIAGOBLIN_DOMAIN_NAME/nginx.conf /etc/nginx/conf.d/ ln -s /srv/$MEDIAGOBLIN_DOMAIN_NAME/nginx.conf /etc/nginx/sites-enabled/ - sudo /etc/init.d/nginx restart - sudo /etc/rc.d/nginx restart + /etc/init.d/nginx restart echo 'install_mediagoblin' >> $COMPLETION_FILE }