install-eg.sh: stop installing legacy OverDrive and mobile PAC; install robots.txt
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 5 Dec 2018 21:40:03 +0000 (13:40 -0800)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 5 Dec 2018 21:40:03 +0000 (13:40 -0800)
deployment/install-eg.sh

index e0d0d28..834a39a 100755 (executable)
@@ -358,15 +358,7 @@ if [ ! -e "${INSTALLDIR}/bin/update-offline-blocked-list.sh" ] ; then cp ${SITKA
 
 cp ${SITKACONF}/files${INSTALLDIR}/var/data/zips.txt/${HOSTNAME} ${INSTALLDIR}/var/data/zips.txt
 
-# install legacy OverDrive API integration
-cp -r ${SITKATOOLS}/overdrive-eg-opac/build/* ${INSTALLDIR}/var/web/js/ui/default/opac
-ODAPI_LIBS="bc mb"
-for ODAPI_LIB in ${ODAPI_LIBS} ; do
-  cp ${SITKACONF}/files/${INSTALLDIR}/var/web/js/ui/default/opac/${ODAPI_LIB}/od_config.js ${INSTALLDIR}/var/web/js/ui/default/opac/${ODAPI_LIB}/od_config.js
-done
-
-# install mobile PAC
-cd ${INSTALLDIR}/var/web/opac/extras && git clone git://git.sitka.bclibraries.ca/sitka/mobile-evergreen-opac.git mobile
+cp -b --suffix=.`date +%Y-%m-%d-%H%M%S` ${SITKACONF}/files${INSTALLDIR}/var/web/robots.txt/${HOSTNAME} ${INSTALLDIR}/var/web/robots.txt
 
 # 9. make sure opensrf owns all the stuff we just did
 echo 'managing file permissions...'