File: libapache-mod-ssl.postinst

package info (click to toggle)
libapache-mod-ssl 2.8.22-1sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,208 kB
  • ctags: 1,649
  • sloc: ansic: 13,070; sh: 3,304; lex: 190; makefile: 99; yacc: 97; perl: 11
file content (30 lines) | stat: -rw-r--r-- 665 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
#! /bin/sh

sslcrtdir=/etc/apache/ssl.crt
supportdir=/usr/share/apache/mod_ssl

umask 022

# we do not want to bother the user with useless questions at install time
if [ "$1" = "reconfigure" -o "${DEBCONF_RECONFIGURE}" = "1" ]; then
	mod-ssl-makecert
fi  

if [ "$1" = "configure" -o "$1" = "reconfigure" -o "${DEBCONF_RECONFIGURE}" = "1" ]; then
	if [ -d ${sslcrtdir} ]; then
		cd ${sslcrtdir}
		. ${supportdir}/functions.sh
		modssl_update_hashes
	fi
fi

if [ "$1" = "configure" ]; then
	# apache-ssl does not need us as DSO
	for i in apache apache-perl; do
		if [ -e "/etc/$i/httpd.conf" ]; then
			apache-modconf "$i" enable mod_ssl
		fi
	done
fi

#DEBHELPER#