File: postfixadmin.postinst

package info (click to toggle)
postfixadmin 2.3.5-2%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,200 kB
  • sloc: php: 25,767; xml: 14,485; perl: 964; sh: 664; python: 169; makefile: 84
file content (29 lines) | stat: -rw-r--r-- 788 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
#!/bin/bash
set -e

if [ "$1" = "configure" ]; then
	# configure DB stuff via dbconfig-common
	dbc_generate_include=php:/etc/postfixadmin/dbconfig.inc.php
	dbc_generate_include_args="-O root:www-data -m 640 -U"
	. /usr/share/debconf/confmodule
	. /usr/share/dbconfig-common/dpkg/postinst
	dbc_go postfixadmin $@
	
	# configure webserver stuff
	db_get postfixadmin/reconfigure-webserver
	servers="$RET"
	restart="$servers"
	linkdestination_apache="../../postfixadmin/apache.conf"
	linkdestination_lighttpd="../../postfixadmin/lighttpd.conf"
	linkname="postfixadmin"
	if [ -e /usr/share/wwwconfig-common/confd-link.sh ]; then
		. /usr/share/wwwconfig-common/confd-link.sh
	else
		. /usr/share/postfixadmin/confd-link.sh
	fi
	. /usr/share/wwwconfig-common/restart.sh
fi

#DEBHELPER#

exit 0