File: libapache-mod-perl.postinst

package info (click to toggle)
apache 1.3.33-6sarge3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,856 kB
  • ctags: 86
  • sloc: sh: 1,229; makefile: 682; perl: 215
file content (24 lines) | stat: -rw-r--r-- 478 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
21
22
23
24
#!/bin/bash

set -e

# for some reason at upgrade time a directory is not
# replaced by a symlink provided by the new package

if [ ! -h /usr/lib/perl5/auto/Apache/include ]; then
	cd /
	rm -rf /usr/lib/perl5/auto/Apache/include
	ln -sf ../../../../include/apache-1.3 usr/lib/perl5/auto/Apache/include
fi

# apache-perl does not need us as DSO

for i in apache apache-ssl; do
	if [ -e /etc/$i/httpd.conf ]; then
		apache-modconf $i enable mod_perl
	fi
done

#DEBHELPER#

exit 0