install-eg.sh: only install a few locales; create offline circ stuff AFTER setting...
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Fri, 23 Aug 2013 22:45:18 +0000 (15:45 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Fri, 23 Aug 2013 22:45:18 +0000 (15:45 -0700)
deployment/install-eg.sh

index c2b4bbd..42d58e8 100755 (executable)
@@ -41,7 +41,7 @@ cd ${BUILDDIR} && make -f Open-ILS/src/extras/Makefile.install ubuntu-precise
 suwrap "cd ${BUILDDIR} && autoreconf -i" ${DEFAULT_USER}
 suwrap "cd ${BUILDDIR} && ./configure -C --prefix=${INSTALLDIR} --sysconfdir=${INSTALLDIR}/conf --with-opensrf-headers=${INSTALLDIR}/include/ --with-opensrf-libs=${INSTALLDIR}/lib/ --with-dbi=/usr/lib/dbd/" ${DEFAULT_USER}
 suwrap "cd ${BUILDDIR} && make" ${DEFAULT_USER}
-suwrap "cd ${BUILDDIR}/build/i18n && make install_all_locales" ${DEFAULT_USER}
+suwrap "cd ${BUILDDIR}/build/i18n && make LOCALE=fr-CA install && make LOCALE=en-CA install" ${DEFAULT_USER}
  
 # as root
 cd ${BUILDDIR} && make STAFF_CLIENT_STAMP_ID=${STAMP_ID} STAFF_CLIENT_VERSION=${VERSION} install
@@ -58,9 +58,6 @@ a2ensite eg.conf
 mkdir /etc/apache2/ssl
 cd /etc/apache2/ssl && openssl req -new -x509 -days 365 -nodes -out server.crt -keyout server.key
 
-# setup offline circ
-cd ${BUILDDIR} && perl Open-ILS/src/support-scripts/eg_db_config --create-offline
 # TODO: set up log rotation
  
 # 0. osrf conf stuff 
@@ -76,6 +73,9 @@ then
   cp ${SITKACONF}/files/home/opensrf/.srfsh.xml/${HOSTNAME} ${HOMEDIR}/.srfsh.xml
 fi 
 
+# setup offline circ
+cd ${BUILDDIR} && perl Open-ILS/src/support-scripts/eg_db_config --create-offline
 # 1. install dojo
 cd /home/opensrf && wget http://download.dojotoolkit.org/release-1.3.3/dojo-release-1.3.3.tar.gz
 tar -C ${INSTALLDIR}/var/web/js -xzf /home/opensrf/dojo-release-1.3.3.tar.gz