summaryrefslogtreecommitdiff
path: root/debian/debhelper/apache2-maintscript-helper
diff options
context:
space:
mode:
authorArno Töll <arno@debian.org>2013-05-20 14:34:58 +0200
committerArno Töll <arno@debian.org>2013-05-20 14:34:58 +0200
commit871e8e44e9f6786c52df66149063f3fe5ee2bcbf (patch)
tree431e3b7a8176509e444dc2b2ab735293626719f5 /debian/debhelper/apache2-maintscript-helper
parentfe499ed87dd14a5a7f2a6137f7abba81e3c1661c (diff)
downloadapache2-871e8e44e9f6786c52df66149063f3fe5ee2bcbf.tar.gz
Also purge the state when the module was disabled by the site administrator
Diffstat (limited to 'debian/debhelper/apache2-maintscript-helper')
-rw-r--r--debian/debhelper/apache2-maintscript-helper4
1 files changed, 3 insertions, 1 deletions
diff --git a/debian/debhelper/apache2-maintscript-helper b/debian/debhelper/apache2-maintscript-helper
index 87572f2a..492fcdcf 100644
--- a/debian/debhelper/apache2-maintscript-helper
+++ b/debian/debhelper/apache2-maintscript-helper
@@ -380,11 +380,13 @@ apache2_invoke()
apache2_msg "error" "apache2_invoke: $invoke_string $CONF not supported in $APACHE2_MAINTSCRIPT_NAME"
return 1
fi
- elif [ "$a2query_ret" -eq 33 ] ; then
+ elif [ "$a2query_ret" -eq 32 ] || [ "$a2query_ret" -eq 33 ] ; then
if [ "$APACHE2_MAINTSCRIPT_NAME" = 'postrm' ] && [ "$APACHE2_MAINTSCRIPT_METHOD" = "purge" ] ; then
apache2_msg "info" "apache2_invoke $APACHE2_MAINTSCRIPT_NAME: Purging state for $CONF"
# this will return RC=1
( a2$CMD -p -f -q "$CONF" > /dev/null 2>&1 )
+ else
+ apache2_msg "info" "apache2_invoke $CONF $APACHE2_MAINTSCRIPT_NAME: No action required"
fi
else
apache2_msg "info" "apache2_invoke $CONF $APACHE2_MAINTSCRIPT_NAME: No action required"