diff options
| author | Stefan Fritsch <sf@sfritsch.de> | 2014-09-28 22:33:08 +0200 |
|---|---|---|
| committer | Stefan Fritsch <sf@sfritsch.de> | 2014-09-28 22:36:27 +0200 |
| commit | 608b9c9e1cc2bd89f6aaca1c1520fa9e5df270ad (patch) | |
| tree | 934da845b4127b5890431cc286c0a545705ea4ea | |
| parent | 421251bae25f2ec2f049efd6f171c117fd38fa58 (diff) | |
| download | apache2-608b9c9e1cc2bd89f6aaca1c1520fa9e5df270ad.tar.gz | |
fix logic to get current MPM
| -rw-r--r-- | debian/apache2.postinst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/apache2.postinst b/debian/apache2.postinst index 782e5c63..56cc3b1f 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" |
