install-eg.sh: deploy compiled JS for overdrive-eg-opac
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Thu, 9 Jul 2015 18:29:30 +0000 (11:29 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Thu, 9 Jul 2015 18:29:30 +0000 (11:29 -0700)
deployment/install-eg.sh

index e601034..1d8e5c0 100755 (executable)
@@ -192,6 +192,12 @@ 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
 
+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 ${SYSADMIN}/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
+
 # 9. make sure opensrf owns all the stuff we just did
 chown -R opensrf:opensrf ${INSTALLDIR}
 chown -R opensrf:opensrf /home/opensrf