summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/apache2.2-common.preinst2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/apache2.2-common.preinst b/debian/apache2.2-common.preinst
index 44d4844d..748eaf2f 100644
--- a/debian/apache2.2-common.preinst
+++ b/debian/apache2.2-common.preinst
@@ -3,7 +3,7 @@
# This is an evil hack around the fact that dpkg is unpacking in the
# wrong order causing "stop" to fail.
-if [ -e /usr/sbin/apache2 ]; then
+if [ -z "$2" ] && [ -e /usr/sbin/apache2 ]; then
chmod -x /usr/sbin/apache2
fi