install-eg.sh: support scripts setup: EDI, generate_circ_notices.pl eg28
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Sun, 12 Jul 2015 21:17:17 +0000 (14:17 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Sun, 12 Jul 2015 21:17:47 +0000 (14:17 -0700)
deployment/install-eg.sh

index 5d1d360..c4bc80d 100755 (executable)
@@ -23,6 +23,7 @@ suwrap() {
 while getopts ":p" opt ; do
   case $opt in
     p ) PROD="prod";;
+    e ) EDI="edi";;
   esac
 done
 shift $(($OPTIND - 1))
@@ -160,9 +161,17 @@ if [[ -n "$NEW_DELETEPATRON_INSTALL" ]] ; then
 fi
 apt-get install -y libcgi-session-perl libhtml-template-perl
 
-# 7. support scripts - XXX deprecated?
-#cp ${BUILDDIR}/Open-ILS/src/support-scripts/generate_circ_notices.pl ${INSTALLDIR}/bin
-#cp ${BUILDDIR}/Open-ILS/src/support-scripts/oils_header.pl ${INSTALLDIR}/bin
+# 7. support scripts
+cp ${BUILDDIR}/Open-ILS/src/support-scripts/generate_circ_notices.pl ${INSTALLDIR}/bin
+
+# 7.5 EDI (optional)
+if [[ -n "$EDI" ]] ; then
+  cp -r ${BUILDDIR}/Open-ILS/src/edi_translator ${INSTALLDIR}/var/edi
+  cd ${INSTALLDIR}/var/edi && ./install.sh
+  cp ${BUILDDIR}/Open-ILS/src/support-scripts/edi_pusher.pl ${INSTALLDIR}/bin
+  cp ${BUILDDIR}/Open-ILS/src/support-scripts/edi_fetcher.pl ${INSTALLDIR}/bin
+  cp ${SYSADMIN}/files/${INSTALLDIR}/bin/edi_per_account_fetcher.sh ${INSTALLDIR}/bin/edi_per_account_fetcher.sh
+fi
 
 # 8. setup start page
 if [ ! -d "${INSTALLDIR}/var/web/news" ]