install-eg.sh: offline blocked patron list
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Tue, 16 Jun 2015 19:16:58 +0000 (12:16 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Tue, 16 Jun 2015 19:16:58 +0000 (12:16 -0700)
deployment/install-eg.sh

index e7c8a65..2c6fb9a 100755 (executable)
@@ -12,6 +12,7 @@ BRANCH="upgrade/eg28/phase2b-tpac"
 STAMP_ID="rel_2_8_1"
 ALT_STAMP_IDS="2_8_1 rel_2_8_beta 2_8_beta rel_2_8_0 2_8_0"
 SITKACONF="${HOMEDIR}/sysadmin"
+SITKATOOLS="/root/sitka-tools"
 
 suwrap() {
   su -s /bin/bash -l -c "source ~/.bashrc ; $1" $2
@@ -154,6 +155,11 @@ do
   fi
 done
 
+# 8.5 offline patron list
+if [ ! -d "${INSTALLDIR}/var/data/offline/blocked" ] ; then mkdir -p ${INSTALLDIR}/var/data/offline/blocked ; fi
+if [ ! -e "${INSTALLDIR}/var/web/standalone/list.txt" ] ; then ln -s ${INSTALLDIR}/var/data/offline/blocked/patron-block-list.txt list.txt ; fi
+if [ ! -e "${INSTALLDIR}/bin/update-offline-blocked-list.sh" ] ; then cp ${SITKATOOLS}/maintenance/update-offline-blocked-list.sh ${INSTALLDIR}/bin/update-offline-blocked-list.sh ; fi
+
 # 9. make sure opensrf owns all the stuff we just did
 chown -R opensrf:opensrf ${INSTALLDIR}
 chown -R opensrf:opensrf /home/opensrf