summaryrefslogtreecommitdiff
path: root/debian/libapache2-mod-php5filter.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/libapache2-mod-php5filter.postinst')
-rw-r--r--debian/libapache2-mod-php5filter.postinst4
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/libapache2-mod-php5filter.postinst b/debian/libapache2-mod-php5filter.postinst
index f3ac845fa..ac7312959 100644
--- a/debian/libapache2-mod-php5filter.postinst
+++ b/debian/libapache2-mod-php5filter.postinst
@@ -22,6 +22,10 @@ reload_apache()
}
if [ -n "$2" ]; then
+ # recover the previous state
+ if [ -e /etc/php5/apache2filter/.start ]; then
+ a2enmod php5filter >/dev/null || true
+ fi
# we're upgrading. test if we're enabled, and if so, restart to reload the module.
if [ -e /etc/apache2/mods-enabled/php5filter.load ]; then
reload_apache