r45849 - in /trunk/libembperl-perl/debian: libembperl-perl.postinst libembperl-perl.prerm
gwolf at users.alioth.debian.org
gwolf at users.alioth.debian.org
Thu Oct 15 17:00:59 UTC 2009
Author: gwolf
Date: Thu Oct 15 17:00:38 2009
New Revision: 45849
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=45849
Log:
Use apache2ctl if invoke-rc.d not available (it's gregoa's to blame/thank)
Modified:
trunk/libembperl-perl/debian/libembperl-perl.postinst
trunk/libembperl-perl/debian/libembperl-perl.prerm
Modified: trunk/libembperl-perl/debian/libembperl-perl.postinst
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libembperl-perl/debian/libembperl-perl.postinst?rev=45849&op=diff
==============================================================================
--- trunk/libembperl-perl/debian/libembperl-perl.postinst (original)
+++ trunk/libembperl-perl/debian/libembperl-perl.postinst Thu Oct 15 17:00:38 2009
@@ -4,11 +4,13 @@
#DEBHELPER#
-if [ "$1" = configure ]
+if [ "$1" = configure ]; then
if [ -x /usr/sbin/a2enmod ]; then
a2enmod zembperl || true
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d apache2 reload || true
+ else if [ -x /usr/sbin/apache2ctl ]; then
+ apache2ctl graceful || true
fi
fi
fi
Modified: trunk/libembperl-perl/debian/libembperl-perl.prerm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libembperl-perl/debian/libembperl-perl.prerm?rev=45849&op=diff
==============================================================================
--- trunk/libembperl-perl/debian/libembperl-perl.prerm (original)
+++ trunk/libembperl-perl/debian/libembperl-perl.prerm Thu Oct 15 17:00:38 2009
@@ -9,6 +9,8 @@
a2dismod zembperl || true
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d apache2 reload || true
+ else if [ -x /usr/sbin/apache2ctl ]; then
+ apache2ctl graceful || true
fi
fi
fi
More information about the Pkg-perl-cvs-commits
mailing list