Mercurial > hg > soundsoftware-site
annotate extra/soundsoftware/vagranttest/provision.d/100-apache-config.sh @ 1578:06ca2df3d7ca dockerise
A couple of missing bits, including a test repo in the Vagrant provision
author | Chris Cannam |
---|---|
date | Fri, 04 Aug 2017 15:43:03 +0100 |
parents | e38eee2e1d47 |
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 #!!! This will fail until we have the user-supplied password |
Chris@1577 | 8 #!!! interpolation logic (also the source paths are silly) |
Chris@1577 | 9 |
Chris@1577 | 10 if [ ! -f /etc/apache2/sites-enabled/10-code.conf ]; then |
Chris@1577 | 11 |
Chris@1577 | 12 rm -f /etc/apache2/sites-enabled/000-default.conf |
Chris@1577 | 13 |
Chris@1577 | 14 cp extra/soundsoftware/dockertest/passenger.conf /etc/apache2/mods-available/ |
Chris@1577 | 15 cp extra/soundsoftware/dockertest/passenger.load /etc/apache2/mods-available/ |
Chris@1577 | 16 cp extra/soundsoftware/dockertest/perl.conf /etc/apache2/mods-available/ |
Chris@1577 | 17 |
Chris@1577 | 18 ln -s ../mods-available/passenger.conf /etc/apache2/mods-enabled/ |
Chris@1577 | 19 ln -s ../mods-available/passenger.load /etc/apache2/mods-enabled/ |
Chris@1577 | 20 ln -s ../mods-available/perl.conf /etc/apache2/mods-enabled/ |
Chris@1577 | 21 ln -s ../mods-available/expires.load /etc/apache2/mods-enabled/ |
Chris@1577 | 22 ln -s ../mods-available/rewrite.load /etc/apache2/mods-enabled/ |
Chris@1578 | 23 ln -s ../mods-available/cgi.load /etc/apache2/mods-enabled/ |
Chris@1577 | 24 |
Chris@1577 | 25 cp extra/soundsoftware/dockertest/code.conf.interpolated /etc/apache2/sites-available/code.conf |
Chris@1577 | 26 ln -s ../sites-available/code.conf /etc/apache2/sites-enabled/10-code.conf |
Chris@1577 | 27 |
Chris@1577 | 28 apache2ctl configtest |
Chris@1577 | 29 |
Chris@1577 | 30 fi |
Chris@1577 | 31 |