To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / extra / soundsoftware / vagranttest / provision.d / 100-apache-config.sh @ 1579:aba122ac2d40
History | View | Annotate | Download (1.14 KB)
| 1 | 1577:e38eee2e1d47 | Chris | #!/bin/bash |
|---|---|---|---|
| 2 | |||
| 3 | set -e |
||
| 4 | |||
| 5 | cd /var/www/code |
||
| 6 | |||
| 7 | #!!! This will fail until we have the user-supplied password |
||
| 8 | #!!! interpolation logic (also the source paths are silly) |
||
| 9 | |||
| 10 | if [ ! -f /etc/apache2/sites-enabled/10-code.conf ]; then |
||
| 11 | |||
| 12 | rm -f /etc/apache2/sites-enabled/000-default.conf |
||
| 13 | |||
| 14 | cp extra/soundsoftware/dockertest/passenger.conf /etc/apache2/mods-available/ |
||
| 15 | cp extra/soundsoftware/dockertest/passenger.load /etc/apache2/mods-available/ |
||
| 16 | cp extra/soundsoftware/dockertest/perl.conf /etc/apache2/mods-available/ |
||
| 17 | |||
| 18 | ln -s ../mods-available/passenger.conf /etc/apache2/mods-enabled/ |
||
| 19 | ln -s ../mods-available/passenger.load /etc/apache2/mods-enabled/ |
||
| 20 | ln -s ../mods-available/perl.conf /etc/apache2/mods-enabled/ |
||
| 21 | ln -s ../mods-available/expires.load /etc/apache2/mods-enabled/ |
||
| 22 | ln -s ../mods-available/rewrite.load /etc/apache2/mods-enabled/ |
||
| 23 | 1578:06ca2df3d7ca | Chris | ln -s ../mods-available/cgi.load /etc/apache2/mods-enabled/ |
| 24 | 1577:e38eee2e1d47 | Chris | |
| 25 | cp extra/soundsoftware/dockertest/code.conf.interpolated /etc/apache2/sites-available/code.conf |
||
| 26 | ln -s ../sites-available/code.conf /etc/apache2/sites-enabled/10-code.conf |
||
| 27 | |||
| 28 | apache2ctl configtest |
||
| 29 | |||
| 30 | fi |