Mercurial > hg > soundsoftware-site
comparison deploy/provision.d/100-apache-config.sh @ 1606:16325d2ab2dd deploy
Install static site conf file too
author | Chris Cannam |
---|---|
date | Fri, 25 Aug 2017 15:20:53 +0100 |
parents | 18643ab36008 |
children | b8e5e9734526 |
comparison
equal
deleted
inserted
replaced
1605:18643ab36008 | 1606:16325d2ab2dd |
---|---|
6 | 6 |
7 cd /var/www/code | 7 cd /var/www/code |
8 | 8 |
9 codeconf=/var/www/code/deploy/config/code.conf.gen | 9 codeconf=/var/www/code/deploy/config/code.conf.gen |
10 codeconfssl=/var/www/code/deploy/config/code-ssl.conf.gen | 10 codeconfssl=/var/www/code/deploy/config/code-ssl.conf.gen |
11 staticconf=/var/www/code/deploy/config/soundsoftware-static.conf | |
11 | 12 |
12 if [ ! -f "$codeconf" ]; then | 13 if [ ! -f "$codeconf" ]; then |
13 echo "ERROR: Apache config file $codeconf not found - has the database secret been interpolated from its input file correctly?" | 14 echo "ERROR: Apache config file $codeconf not found - has the database secret been interpolated from its input file correctly?" |
14 exit 2 | 15 exit 2 |
15 fi | 16 fi |
30 ln -s ../mods-available/cgi.load /etc/apache2/mods-enabled/ | 31 ln -s ../mods-available/cgi.load /etc/apache2/mods-enabled/ |
31 ln -s ../mods-available/ssl.load /etc/apache2/mods-enabled/ | 32 ln -s ../mods-available/ssl.load /etc/apache2/mods-enabled/ |
32 | 33 |
33 cp "$codeconf" /etc/apache2/sites-available/code.conf | 34 cp "$codeconf" /etc/apache2/sites-available/code.conf |
34 cp "$codeconfssl" /etc/apache2/sites-available/code-ssl.conf | 35 cp "$codeconfssl" /etc/apache2/sites-available/code-ssl.conf |
36 cp "$staticconf" /etc/apache2/sites-available/soundsoftware-static.conf | |
35 ln -s ../sites-available/code.conf /etc/apache2/sites-enabled/10-code.conf | 37 ln -s ../sites-available/code.conf /etc/apache2/sites-enabled/10-code.conf |
36 | 38 |
37 apache2ctl configtest | 39 apache2ctl configtest |
38 | 40 |
39 fi | 41 fi |