1 #! /bin/sh
2 # config script for pnp4nagios-web
3 #
4 # see: dh_installdebconf(1)
6 set -e
8 # summary of how this script can be called:
9 # * <preconfigure> `configure' <installed-version>
10 # * <postinst> `configure' <old-version>
11 # * <reconfigure> `reconfigure' <installed-version>
13 . /usr/share/debconf/confmodule
15 case "$1" in
16 configure|reconfigure)
17 default_servers=""
18 if test -d /etc/apache2/conf.d; then
19 default_servers="apache2"
20 fi
22 db_fget pnp4nagios-web/httpd seen
23 if [ "$RET" = "false" ]; then
24 db_set pnp4nagios-web/httpd "$default_servers"
25 fi
27 db_input medium pnp4nagios-web/httpd || true
28 db_go || true
29 ;;
31 *)
32 echo "config called with unknown argument \`$1'" >&2
33 exit 1
34 ;;
35 esac
37 db_stop
39 exit 0