[apache2] 02/04: fix logic to get current MPM

Stefan Fritsch sf at moszumanska.debian.org
Sun Sep 28 20:46:08 UTC 2014


This is an automated email from the git hooks/post-receive script.

sf pushed a commit to branch master
in repository apache2.

commit 608b9c9e1cc2bd89f6aaca1c1520fa9e5df270ad
Author: Stefan Fritsch <sf at sfritsch.de>
Date:   Sun Sep 28 22:33:08 2014 +0200

    fix logic to get current MPM
---
 debian/apache2.postinst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/apache2.postinst b/debian/apache2.postinst
index 782e5c6..56cc3b1 100644
--- a/debian/apache2.postinst
+++ b/debian/apache2.postinst
@@ -434,7 +434,7 @@ execute_deferred_actions ()
 		apache2_switch_mpm)
 			local MPM="mpm_$ARG1"
 			local CUR_MPM="$(ls /etc/apache2/mods-enabled/mpm_*.load)"
-			CUR_MPM="${CUR_MPM##*/}"
+			CUR_MPM="${CUR_MPM##*/mpm_}"
 			CUR_MPM="${CUR_MPM%.load}"
 			if [ ! -e /etc/apache2/mods-available/$MPM.load ] ; then
 				msg "error" "$MPM not found in 'apache2_switch_mpm $ARG1' for package $PACKAGE"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-apache/apache2.git



More information about the Pkg-apache-commits mailing list