Move hcoop vhost config into sites-available
authorClinton Ebadi <clinton@unknownlamer.org>
Sat, 16 Feb 2013 00:53:28 +0000 (19:53 -0500)
committerClinton Ebadi <clinton@unknownlamer.org>
Sat, 16 Feb 2013 00:53:28 +0000 (19:53 -0500)
debian/hcoop-apache2-config.install
debian/hcoop-apache2-config.postinst
debian/hcoop-apache2-config.postrm
files/sites-available/hcoop-vhosts [moved from files/conf.d/hcoop_vhosts with 100% similarity]

index 5982463..fffb209 100644 (file)
@@ -3,4 +3,5 @@ files/apache_in.rules etc/ferm/service.in.d
 files/apache_out.rules etc/ferm/service.out.d
 files/www-data.hcoop etc/apache2/suexec
 files/suphp.conf.hcoop etc/suphp
-files/mods-available/* etc/apache2/mods-available
\ No newline at end of file
+files/mods-available/* etc/apache2/mods-available
+files/sites-available/* etc/apache2/sites-available
\ No newline at end of file
index 4448d88..9df107d 100644 (file)
@@ -29,6 +29,10 @@ case "$1" in
        for mod in $HCOOP_APACHE_MODULES; do
            a2enmod -q $mod
        done
+
+       # Enable vhosts. This has to be in sites-enabled so that
+       # 000default is loaded before member vhosts
+       a2ensite hcoop-vhosts
        
        HCOOP_ENABLE_FAILED=0
        for mod in $HCOOP_APACHE_MODULES; do
index e2b992a..1eea3f5 100644 (file)
@@ -24,6 +24,8 @@ case "$1" in
            a2dismod -q -f $mod || true
        done
 
+       a2dissite hcoop-vhosts
+
 #      invoke-rc.d apache2 restart
     ;;