deployment: add staff client start page
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 26 Sep 2012 19:09:00 +0000 (12:09 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 26 Sep 2012 19:09:00 +0000 (12:09 -0700)
deployment/install-eg.sh

index 4faf571..7d4bfbe 100755 (executable)
@@ -135,6 +135,20 @@ cd ${INSTALLDIR}/var/web/deletepatron && git checkout eg22 && find . -name *.pm
 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
 
-# 8. make sure opensrf owns all the stuff we just did
+# 8. setup start page
+if [ ! -d "${INSTALLDIR}/var/web/news" ]
+then
+  mkdir ${INSTALLDIR}/var/web/news
+fi
+NEWSFILES="index.html style.css"
+for NEWSFILE in ${NEWSFILES}
+do
+  if [ -f "${SITKACONF}/files/${INSTALLDIR}/var/web/news/${NEWSFILE}/${HOSTNAME}" ]
+  then
+    cp ${SITKACONF}/files/${INSTALLDIR}/var/web/news/${NEWSFILE}/${HOSTNAME} ${INSTALLDIR}/var/web/news/${NEWSFILE}
+  fi
+done
+
+# 9. make sure opensrf owns all the stuff we just did
 chown -R opensrf:opensrf ${INSTALLDIR}