2 # copied from libapache2-mod-php4
6 if apache2ctl configtest 2>/dev/null; then
7 invoke-rc.d apache2 force-reload || true
9 echo "Your apache2 configuration is broken, so we're not restarting it for you."
14 # we're upgrading. test if we're enabled, and if so, restart to reload the module.
15 if [ -e /etc/apache2/mods-enabled/mod-security.load ]; then
21 if [ -e /etc/apache2/apache2.conf ]; then
22 # Enable the module, but hide a2enmod's misleading message about apachectl
23 # and force-reload the thing ourselves.
24 a2enmod mod-security >/dev/null || true
25 a2enmod unique_id >/dev/null || true