From ed0e0b1b81d39bc6233362ea7a449e7aa14ecf32 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Sat, 23 Sep 2017 14:13:12 -0400 Subject: [PATCH] Stop apache, do some stuff, then start apache. Signed-off-by: Chris Sharp --- files_for_build/postinst-cluster | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.11.0