file perms in install scripts
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Thu, 19 May 2016 21:29:15 +0000 (14:29 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Thu, 19 May 2016 21:29:15 +0000 (14:29 -0700)
deployment/install-eg.sh
deployment/install-osrf.sh

index 78f7d71..28c3b4e 100755 (executable)
@@ -72,7 +72,6 @@ suwrap "cd ${BUILDDIR}/build/i18n && make LOCALE=fr-CA install && make LOCALE=en
 # as root
 cd ${BUILDDIR} && make STAFF_CLIENT_VERSION=${VERSION} STAFF_CLIENT_STAMP_ID=${STAMP_ID} install
 mv ${INSTALLDIR}/var/web/reports/fm_IDL.xml ${INSTALLDIR}/var/web/reports/fm_IDL.xml.orig && cp ${INSTALLDIR}/conf/fm_IDL.xml ${INSTALLDIR}/var/web/reports/
-chown -R opensrf:opensrf ${INSTALLDIR}
  
 # Apache stuff (as root):
 APACHEFILES="/etc/apache2/eg_vhost.conf /etc/apache2/eg_startup /etc/apache2/envvars"
@@ -261,7 +260,8 @@ done
 cd ${INSTALLDIR}/var/web/opac/extras && git clone git://git.sitka.bclibraries.ca/sitka/mobile-evergreen-opac.git mobile
 
 # 9. make sure opensrf owns all the stuff we just did
-chown -R opensrf:opensrf ${INSTALLDIR}
+echo 'managing file permissions...'
+chown -R opensrf:opensrf ${INSTALLDIR} 2>/dev/null
 chown -R opensrf:opensrf /home/opensrf
 SKINDIRS="${INSTALLDIR}/var/skins ${INSTALLDIR}/var/web/css/skin"
 for SKINDIR in ${SKINDIRS} ; do
@@ -269,6 +269,7 @@ for SKINDIR in ${SKINDIRS} ; do
   chmod 777 ${SKINDIR}
   chown -R sitkastaff:sitkastaff ${SKINDIR}
 done
+chown -R sitkastaff:sitkastaff ${INSTALLDIR}/conf/kpac ${INSTALLDIR}/var/web/images/kpac
 
 # 10. staff client stuff
 apt-get install -y nsis unzip
index 6fc8572..78345c6 100755 (executable)
@@ -75,7 +75,7 @@ for PATHFILE in ${PATHFILES} ; do
   fi
 done
 chown ${DEFAULT_USER}:${DEFAULT_USER} /home/${DEFAULT_USER}/.bashrc
-chown -R opensrf:opensrf ${INSTALLDIR}
+#chown -R opensrf:opensrf ${INSTALLDIR}
  
 # as root, add the following two lines to /etc/hosts:
 #127.0.1.2     public.localhost        public