← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9438: Minor alterations to Ubuntu server setup script.

 

------------------------------------------------------------
revno: 9438
committer: Jason P. Pickering <jason.p.pickering@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2013-01-05 09:58:14 +0200
message:
  Minor alterations to Ubuntu server setup script.
modified:
  resources/util/dhis2_serveropt.sh


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'resources/util/dhis2_serveropt.sh'
--- resources/util/dhis2_serveropt.sh	2013-01-04 10:16:35 +0000
+++ resources/util/dhis2_serveropt.sh	2013-01-05 07:58:14 +0000
@@ -64,6 +64,8 @@
 wal_buffers = 4MB\n
 synchronous_commit = off\n
 wal_writer_delay = 10000ms\n\"  > /etc/postgresql/$PG_VERSION/main/postgresql.conf"
+
+#NGINX Configuration
 #Nginx configuration
 sudo cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.bak
 #Main ngnix config
@@ -125,10 +127,12 @@
   }
 rewrite ^/$ /$USERNAME/ permanent;
 }\" > /etc/nginx/sites-available/$USERNAME"
+sudo ln -s /etc/nginx/sites-available/$USERNAME /etc/nginx/sites-enabled/$USERNAME
 sudo /etc/init.d/nginx restart
 
 #Restart postgres
 sudo /etc/init.d/postgresql restart $PG_VERSION
+#Restart Tomcat
 sudo -u $USERNAME /home/$USERNAME/tomcat/bin/shutdown.sh
 sudo -u $USERNAME /home/$USERNAME/tomcat/bin/startup.sh