install-eg.sh: add maint-message banner to non-prod EG servers
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 10 Aug 2016 21:22:46 +0000 (14:22 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 10 Aug 2016 21:22:46 +0000 (14:22 -0700)
deployment/install-eg.sh

index bca741e..87ce433 100755 (executable)
@@ -88,11 +88,12 @@ if [[ ! -n "$PROD" ]] ; then
   if [ ! -d "/etc/apache2/includes" ] ; then
     mkdir /etc/apache2/includes
   fi
-  SITECONFIGS="/etc/apache2/includes/498-ssl-star.catalogue.libraries.coop-include /etc/apache2/includes/499-rewrites.conf-include /etc/apache2/includes/default.conf-include /etc/apache2/sites-available/eg.conf /etc/apache2/sites-available/499-star.catalogue.libraries.coop.conf"
+  SITECONFIGS="/etc/apache2/includes/498-ssl-star.catalogue.libraries.coop-include /etc/apache2/includes/499-rewrites.conf-include /etc/apache2/includes/default.conf-include /etc/apache2/sites-available/eg.conf /etc/apache2/sites-available/499-star.catalogue.libraries.coop.conf /etc/apache2/sites-available/test-server.conf"
   for SITECONFIG in ${SITECONFIGS} ; do
     mv ${SITECONFIG} ${SITECONFIG}.bak
     cp ${SITKACONF}/files/${SITECONFIG}/${HOSTNAME} ${SITECONFIG}
     sed -i "s|__NONPROD__|${THISHOST}|g" ${SITECONFIG}
+    sed -i "s|__VERSION__|${VERSION}|g" ${SITECONFIG}
   done
   if [ ! -d "/etc/apache2/ssl/libraries.coop/star.catalogue.libraries.coop" ]
   then
@@ -103,6 +104,7 @@ if [[ ! -n "$PROD" ]] ; then
   fi
   a2ensite eg.conf
   a2ensite 499-star.catalogue.libraries.coop.conf
+  a2ensite test-server.conf
 fi
 
 # install default crontab, if specified