Mercurial > hg > soundsoftware-site
annotate extra/soundsoftware/scripted-deploy/vagrant/provision.d/100-apache-config.sh @ 1586:d0d59d12db94 dockerise
Add some cron scripts, update
author | Chris Cannam |
---|---|
date | Wed, 16 Aug 2017 16:58:22 +0100 |
parents | ae8043b014c7 |
children |
rev | line source |
---|---|
Chris@1577 | 1 #!/bin/bash |
Chris@1577 | 2 |
Chris@1577 | 3 set -e |
Chris@1577 | 4 |
Chris@1577 | 5 cd /var/www/code |
Chris@1577 | 6 |
Chris@1577 | 7 if [ ! -f /etc/apache2/sites-enabled/10-code.conf ]; then |
Chris@1577 | 8 |
Chris@1577 | 9 rm -f /etc/apache2/sites-enabled/000-default.conf |
Chris@1577 | 10 |
Chris@1581 | 11 cp extra/soundsoftware/scripted-deploy/config/passenger.conf /etc/apache2/mods-available/ |
Chris@1581 | 12 cp extra/soundsoftware/scripted-deploy/config/passenger.load /etc/apache2/mods-available/ |
Chris@1581 | 13 cp extra/soundsoftware/scripted-deploy/config/perl.conf /etc/apache2/mods-available/ |
Chris@1577 | 14 |
Chris@1577 | 15 ln -s ../mods-available/passenger.conf /etc/apache2/mods-enabled/ |
Chris@1577 | 16 ln -s ../mods-available/passenger.load /etc/apache2/mods-enabled/ |
Chris@1577 | 17 ln -s ../mods-available/perl.conf /etc/apache2/mods-enabled/ |
Chris@1577 | 18 ln -s ../mods-available/expires.load /etc/apache2/mods-enabled/ |
Chris@1577 | 19 ln -s ../mods-available/rewrite.load /etc/apache2/mods-enabled/ |
Chris@1578 | 20 ln -s ../mods-available/cgi.load /etc/apache2/mods-enabled/ |
Chris@1577 | 21 |
Chris@1581 | 22 cp extra/soundsoftware/scripted-deploy/config/code.conf.interpolated /etc/apache2/sites-available/code.conf |
Chris@1577 | 23 ln -s ../sites-available/code.conf /etc/apache2/sites-enabled/10-code.conf |
Chris@1577 | 24 |
Chris@1577 | 25 apache2ctl configtest |
Chris@1577 | 26 |
Chris@1577 | 27 fi |
Chris@1577 | 28 |