File: libapache2-mpm-itk.postinst

package info (click to toggle)
mpm-itk 2.4.7-04-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 244 kB
  • sloc: ansic: 680; makefile: 26; sh: 15
file content (22 lines) | stat: -rw-r--r-- 484 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e

if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt 2.4.7-02-1.1~; then
	if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
		. /usr/share/apache2/apache2-maintscript-helper

		if [ "$(a2query -M)" != "prefork" ] ; then
			if apache2_switch_mpm prefork ; then
				apache2_invoke enmod mpm_itk
			else
				apache2_msg err "Could not switch to prefork, not enabling mpm_itk"
			fi
		else
			apache2_invoke enmod mpm_itk
		fi

	fi
fi

#DEBHELPER#