1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/debian/prerm Mon May 12 21:37:03 2014 +0200
1.3 @@ -0,0 +1,20 @@
1.4 +#!/bin/bash
1.5 +
1.6 +reload_apache()
1.7 +{
1.8 + if apache2ctl configtest 2>/dev/null; then
1.9 + invoke-rc.d apache2 $1 || true
1.10 + else
1.11 + echo "Your apache2 configuration is broken, so we're not restarting it for you."
1.12 + fi
1.13 +}
1.14 +
1.15 +
1.16 +case "$1" in
1.17 + remove)
1.18 + if [ -e "/etc/apache2/sites-enabled/chwala" ]; then
1.19 + a2ensite chwala
1.20 + fi
1.21 + reload_apache reload
1.22 + ;;
1.23 +esac