Mercurial > hg > soundsoftware-site
diff extra/soundsoftware/scripted-deploy/vagrant/provision.d/100-apache-config.sh @ 1581:ae8043b014c7 dockerise
Updates, fixes, and tidying to scripted deployment stuff
author | Chris Cannam |
---|---|
date | Tue, 15 Aug 2017 13:33:56 +0100 |
parents | extra/soundsoftware/vagranttest/provision.d/100-apache-config.sh@06ca2df3d7ca |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/extra/soundsoftware/scripted-deploy/vagrant/provision.d/100-apache-config.sh Tue Aug 15 13:33:56 2017 +0100 @@ -0,0 +1,28 @@ +#!/bin/bash + +set -e + +cd /var/www/code + +if [ ! -f /etc/apache2/sites-enabled/10-code.conf ]; then + + rm -f /etc/apache2/sites-enabled/000-default.conf + + cp extra/soundsoftware/scripted-deploy/config/passenger.conf /etc/apache2/mods-available/ + cp extra/soundsoftware/scripted-deploy/config/passenger.load /etc/apache2/mods-available/ + cp extra/soundsoftware/scripted-deploy/config/perl.conf /etc/apache2/mods-available/ + + ln -s ../mods-available/passenger.conf /etc/apache2/mods-enabled/ + ln -s ../mods-available/passenger.load /etc/apache2/mods-enabled/ + ln -s ../mods-available/perl.conf /etc/apache2/mods-enabled/ + ln -s ../mods-available/expires.load /etc/apache2/mods-enabled/ + ln -s ../mods-available/rewrite.load /etc/apache2/mods-enabled/ + ln -s ../mods-available/cgi.load /etc/apache2/mods-enabled/ + + cp extra/soundsoftware/scripted-deploy/config/code.conf.interpolated /etc/apache2/sites-available/code.conf + ln -s ../sites-available/code.conf /etc/apache2/sites-enabled/10-code.conf + + apache2ctl configtest + +fi +