more tweaks to install script
authorLisa Marie Maginnis <lisam@fsf.org>
Mon, 29 Feb 2016 02:25:58 +0000 (21:25 -0500)
committerLisa Marie Maginnis <lisam@fsf.org>
Mon, 29 Feb 2016 02:25:58 +0000 (21:25 -0500)
files/etc/init.d/install-mediagoblin/DEFAULT

index b972fac77a6a63b1cc60060133b14df8feaf9431..60c02a27b555370cf4a2a7dea842ed8b2d7259ce 100755 (executable)
@@ -3,7 +3,7 @@ echo Installing GMG into GMG_PATH_TOKEN...
 (
 cd GMG_PATH_TOKEN
 if [ ! -d mediagoblin ]; then
 (
 cd GMG_PATH_TOKEN
 if [ ! -d mediagoblin ]; then
-
+   /etc/init.d/postgresql start
     # Create the GMG user
     sudo -H -u postgres psql -c "UPDATE pg_database SET datistemplate = FALSE WHERE datname = 'template1'"
     sudo -H -u postgres psql -c "DROP DATABASE template1"
     # Create the GMG user
     sudo -H -u postgres psql -c "UPDATE pg_database SET datistemplate = FALSE WHERE datname = 'template1'"
     sudo -H -u postgres psql -c "DROP DATABASE template1"
@@ -47,5 +47,5 @@ if [ ! -d mediagoblin ]; then
     /etc/init.d/mediagoblin-paster start
     /etc/init.d/mediagoblin-celery-worker start
 fi
     /etc/init.d/mediagoblin-paster start
     /etc/init.d/mediagoblin-celery-worker start
 fi
-) >> /var/log/fai/install-mediagoblin.log
+) &>> /var/log/fai/install-mediagoblin.log
 echo Install Completed, started mediagoblin-paster and mediagoblin-celery-worker
 echo Install Completed, started mediagoblin-paster and mediagoblin-celery-worker