File: mpm-postinst-threaded

package info (click to toggle)
apache2 2.2.9-10%2Blenny12
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 37,556 kB
  • ctags: 20,182
  • sloc: ansic: 221,847; sh: 20,216; perl: 2,094; makefile: 1,251; awk: 1,124; pascal: 513; lex: 191; python: 136; yacc: 100
file content (32 lines) | stat: -rw-r--r-- 816 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
24
25
26
27
28
29
30
31
32
#!/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.2-common."
fi

# Migrate our kill symlinks, including ones the user may have done an s/S/K/ to:
for i in `seq 0 6`; do
	if [ -L /etc/rc"$i".d/K91apache2 ]; then
		mv /etc/rc"$i".d/K91apache2 \
		   /etc/rc"$i".d/K09apache2
	fi
done

if [ -x "/etc/init.d/apache2" ]; then
        if [ -x /usr/sbin/invoke-rc.d ]; then
                invoke-rc.d apache2 start ||true
        else
                /etc/init.d/apache2 start ||true
        fi
fi

#DEBHELPER#

exit 0