From: Chris Sharp Date: Sat, 23 Sep 2017 18:13:12 +0000 (-0400) Subject: Stop apache, do some stuff, then start apache. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ed0e0b1b81d39bc6233362ea7a449e7aa14ecf32;p=contrib%2Fpines%2Feg-debian.git Stop apache, do some stuff, then start apache. Signed-off-by: Chris Sharp --- diff --git a/files_for_build/postinst-cluster b/files_for_build/postinst-cluster index 1b2c910..6669b05 100755 --- a/files_for_build/postinst-cluster +++ b/files_for_build/postinst-cluster @@ -35,10 +35,11 @@ if [ ! -e "/etc/apache2/ssl" ] popd fi +service apache2 stop sed -i "s^APACHE_RUN_USER=www-data^APACHE_RUN_USER=opensrf^g" /etc/apache2/envvars /usr/sbin/a2dissite 000-default > /dev/null /usr/sbin/a2ensite eg.conf > /dev/null -/etc/init.d/apache2 restart +service apache2 start } init_db() @@ -138,6 +139,8 @@ chown opensrf.opensrf /openils -R } # install_cpan_modules ## now installed from repos. +echo "csharp: before fixup_apache" +ps aux | grep apache fixup_apache #init_db #add_eg_db_user