install-osrf.sh: need placeholder apache2.conf before installing prereqs
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 22 Apr 2015 22:27:29 +0000 (15:27 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 22 Apr 2015 22:27:29 +0000 (15:27 -0700)
deployment/install-osrf.sh

index 61e4cf2..9cf8261 100755 (executable)
@@ -31,6 +31,14 @@ fi
 su -l -c "cd ${BUILDDIR} && git fetch origin && git checkout ${BRANCH} && git pull" ${DEFAULT_USER}
  
 # as root
+echo "need a placeholder apache2.conf, installing from config repo..."
+if [ -f '/etc/apache2/apache2.conf' ]
+then
+  mv /etc/apache2/apache2.conf /etc/apache2/apache2.conf.bak
+fi
+cp ${SITKACONF}/files/etc/apache2/apache2.conf/${HOSTNAME} /etc/apache2/apache2.conf
+
+# as root
 echo "Installing OpenSRF prerequisites for Ubuntu..."
 cd ${BUILDDIR} && make -f src/extras/Makefile.install ubuntu-trusty