File: mpm-postinst-threaded

package info (click to toggle)
apache2 2.0.54-5sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,260 kB
  • ctags: 176
  • sloc: sh: 533; makefile: 367; python: 209; perl: 127
file content (23 lines) | stat: -rw-r--r-- 634 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
23
#!/bin/sh
set -e

if [ "$1" != "configure" ]; then
        exit 0
fi

#enable cgid, but only on new installs.
if [ -z "$2" ]; then
	a2dismod cgi >/dev/null || true
        a2enmod cgid >/dev/null || echo "It looks like you've deleted /etc/apache2/mods-available/cgid.load, so mod_cgid cannot be enabled.  To fix this, please purge and reinstall apache2-common."
fi

if [ -x "/etc/init.d/apache2" ]; then
        update-rc.d apache2 defaults 91 >/dev/null
        if [ -x /usr/sbin/invoke-rc.d ]; then
                invoke-rc.d apache2 start ||true
        else
                /etc/init.d/apache2 start ||true
        fi
fi

exit 0