File: apache2.postinst

package info (click to toggle)
apache2 2.2.22-13%2Bdeb7u6
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 47,900 kB
  • sloc: ansic: 233,662; sh: 15,591; perl: 2,223; awk: 1,172; makefile: 1,081; lex: 191; python: 142; yacc: 100; xml: 36
file content (20 lines) | stat: -rw-r--r-- 358 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
set -e

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

# postinst for apache2, apache2-prefork-dev, apache2-threaded-dev

P=apache2
if dpkg --compare-versions "$2" lt 2.2.11-5~ ; then
	DOCDIR=/usr/share/doc/$P
	if [ ! -h $DOCDIR -a -d $DOCDIR ] ; then
		rmdir $DOCDIR 2> /dev/null && ln -s apache2.2-common $DOCDIR
	fi
fi

#DEBHELPER#

exit 0