summaryrefslogtreecommitdiff
path: root/debian/libapache2-mod-php5.prerm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/libapache2-mod-php5.prerm')
-rw-r--r--debian/libapache2-mod-php5.prerm5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/libapache2-mod-php5.prerm b/debian/libapache2-mod-php5.prerm
index e8c9fd793..801e13c01 100644
--- a/debian/libapache2-mod-php5.prerm
+++ b/debian/libapache2-mod-php5.prerm
@@ -9,6 +9,11 @@ if [ "$1" != "remove" -a "$1" != "purge" ]; then
fi
if [ -e /etc/apache2/apache2.conf ]; then
+ if [ -e /etc/apache2/mods-enabled/php5.load ]; then
+ # set a flag to remember the original state
+ # useful when reinstalling the same version.
+ touch /etc/php5/apache2/.start
+ fi
a2dismod php5 || true
fi