install-eg.sh: always create apache includes dir, even on prod
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Mon, 27 Aug 2018 17:01:37 +0000 (10:01 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Mon, 27 Aug 2018 17:01:37 +0000 (10:01 -0700)
deployment/install-eg.sh

index 34281eb..5daf4e9 100755 (executable)
@@ -116,6 +116,9 @@ do
 done
 cp ${BUILDDIR}/Open-ILS/examples/apache/eg_startup /etc/apache2/eg_startup
 sed -i 's/export APACHE_RUN_USER=www-data/export APACHE_RUN_USER=opensrf/' /etc/apache2/envvars
+if [ ! -d "/etc/apache2/includes" ] ; then
+  mkdir /etc/apache2/includes
+fi
 a2dismod mpm_event
 a2enmod mpm_prefork
 a2enmod headers
@@ -124,9 +127,6 @@ chown -R opensrf:opensrf /var/lock/apache2
 
 # More Apache stuff for non-production sites
 if [[ ! -n "$PROD" ]] ; then
-  if [ ! -d "/etc/apache2/includes" ] ; then
-    mkdir /etc/apache2/includes
-  fi
   SITECONFIGS="/etc/apache2/sites-available/test-server.conf"
   for SITECONFIG in ${SITECONFIGS} ; do
     cp ${SITKACONF}/files/${SITECONFIG}/${HOSTNAME} ${SITECONFIG}