Debian Codegraph @

debian/libapache2-mod-neko.postinst

raw
1 #!/bin/sh
2
3 set -e
4
5 ENABLE2=/usr/sbin/a2enmod
6
7 case "$1" in
8 configure)
9 ## Register with Apache 2, if present.
10 if [ -e /usr/share/apache2/apache2-maintscript-helper ]; then
11 . /usr/share/apache2/apache2-maintscript-helper
12
13 ## mod_neko requires the prefork MPM.
14 if [ "$(a2query -M)" != prefork ]; then
15 if apache2_switch_mpm prefork; then
16 apache2_invoke enmod neko
17 else
18 apache2_msg err "Could not switch to prefork; not enabling mod_neko."
19 fi
20 else
21 apache2_invoke enmod neko
22 fi
23 fi
24 ;;
25 abort-upgrade|abort-remove|abort-deconfigure)
26 ;;
27 *)
28 echo "postinst called with unknown argument \`$1'" >&2
29 esac
30
31 #DEBHELPER#
32
33 exit 0