install-eg.sh: install Sitka's version of 2.6.1 from git
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Fri, 6 Jun 2014 22:43:13 +0000 (15:43 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Fri, 6 Jun 2014 22:43:13 +0000 (15:43 -0700)
deployment/install-eg.sh

index 70fe8b1..03b9fe0 100755 (executable)
@@ -1,15 +1,15 @@
 #!/bin/bash
 # IMPORTANT! This script assumes you have already installed OpenSRF.
 
-HOSTNAME="nonprod-24"
+HOSTNAME="nonprod-26"
 DEFAULT_USER="sitkastaff"
 HOMEDIR="/home/${DEFAULT_USER}"
 BUILDDIR="${HOMEDIR}/evergreen"
 INSTALLDIR="/srv/openils"
-BRANCH="production/sitka_2_4"
-VERSION="2.4.0.sitka.0"
-STAMP_ID="2_4_0_sitka_0"
-ALT_STAMP_IDS="rel_2_4_0_sitka_0 rel_2_4_0_sitka_0"
+BRANCH="upgrade/eg26/beta1-tpac"
+VERSION="2.6.0.sitka.0"
+STAMP_ID="2_6_0_sitka_0"
+ALT_STAMP_IDS="rel_2_6_0_sitka_0"
 SITKACONF="${HOMEDIR}/sysadmin"
 
 suwrap() {
@@ -51,6 +51,7 @@ chown -R opensrf:opensrf ${INSTALLDIR}
 APACHEFILES="/etc/apache2/eg_vhost.conf /etc/apache2/eg_startup /etc/apache2/sites-available/eg.conf"
 for APACHEFILE in ${APACHEFILES}
 do
+  mv ${APACHEFILE} ${APACHEFILE}.bak
   cp ${SITKACONF}/files/${APACHEFILE}/${HOSTNAME} ${APACHEFILE}
 done
 a2dissite default