case "$1" in
configure)
@OLDPACKAGE@-config
+
+ db_stop
+ # Setup our Apache
+ touch /var/lib/@OLDPACKAGE@/etc/templates/httpd.vhosts && \
+ chown @OLDPACKAGE@:@OLDPACKAGE@ /var/lib/@OLDPACKAGE@/etc/templates/httpd.vhosts && \
+ /usr/share/@OLDPACKAGE@/bin/create-vhosts.sh --norestart
+
# Make Apache see these new changes
invoke-rc.d apache2 reload || true
;;
@OLDPACKAGE@-config
db_stop
- # Setup our Apache
- touch /var/lib/@OLDPACKAGE@/etc/templates/httpd.vhosts && \
- chown @OLDPACKAGE@:@OLDPACKAGE@ /var/lib/@OLDPACKAGE@/etc/templates/httpd.vhosts && \
- /usr/share/@OLDPACKAGE@/bin/create-vhosts.sh --norestart
# Enable required modules
DEBIAN_FRONTEND=noninteractive a2enmod php5 || true