Code

collection4.*: Make Apache configuration configurable using debconf.
[pkg-collection4.git] / debian / collection4.config
1 #! /bin/sh
2 # config script for collection4
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 collection4/httpd seen
23                 if [ "$RET" = "false" ]; then
24                         db_set collection4/httpd "$default_servers"
25                 fi
27                 db_input medium collection4/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