From c05e3516a9e2dca5f5c4c4f2d6858ae10c5fdc6d Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Wed, 26 Sep 2012 12:09:00 -0700 Subject: [PATCH] deployment: add staff client start page --- deployment/install-eg.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/deployment/install-eg.sh b/deployment/install-eg.sh index 4faf571..7d4bfbe 100755 --- a/deployment/install-eg.sh +++ b/deployment/install-eg.sh @@ -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} -- 2.3.6