install-osrf.sh: specify hostname in apache2.conf where applicable
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 18 May 2016 19:05:01 +0000 (12:05 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 18 May 2016 19:05:01 +0000 (12:05 -0700)
deployment/install-osrf.sh

index b95fee7..7097527 100755 (executable)
@@ -38,6 +38,7 @@ then
   mv /etc/apache2/apache2.conf /etc/apache2/apache2.conf.bak
 fi
 cp ${SITKACONF}/files/etc/apache2/apache2.conf/${HOSTNAME} /etc/apache2/apache2.conf
+sed -i "s|__HOSTNAME__|${THISHOST}|g" /etc/apache2/apache2.conf
 
 # as root
 echo "Installing OpenSRF prerequisites for Ubuntu..."