This file is indexed.

postinst is in postfixadmin 2.3.5-3.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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



exit 0