3 . /usr/share/debconf/confmodule
7 if test -e /etc/default/webcit; then
8 source /etc/default/webcit
11 export WEBCIT_CITADEL_IP=127.0.0.1
12 export WEBCIT_CITADEL_PORT=504
18 # are we unconfigured?
19 db_get ciatdel/WebcitWebserver &&WWWTYPE="$RET"
20 if test -z "$WWWTYPE"; then
25 # do we want to reconfigure?
26 if test "`echo $2 | sed -e 's/[.-]//g'`" -lt 127 \
32 # are we in first install?
33 if test "$1" = "configure"; then
38 if test "$CONFIGURE" = "yes"; then
41 while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do
44 db_input high citadel/WebcitApacheIntegration
47 db_get citadel/WebcitApacheIntegration
48 if test "$RET" = "Internal"; then
49 db_input high citadel/WebcitHttpPort
51 db_set citadel/WebcitHttpPort 8504
55 db_get citadel/WebcitApacheIntegration
56 if test "$RET" = "Internal"; then
57 db_input high citadel/WebcitHttpsPort
58 db_set citadel/WebcitBindIp 0.0.0.0
60 db_set citadel/WebcitHttpsPort -1
61 db_set citadel/WebcitBindIp 127.0.0.1
65 db_input high citadel/WebcitInstallnote
76 db_get ciatdel/WebcitWebserver &&WWWTYPE="$RET"
77 db_get citadel/WebcitHttpPort && WEBCIT_HTTP_PORT="$RET"
78 db_get citadel/WebcitHttpsPort && WEBCIT_HTTPS_PORT="$RET"
79 db_get citadel/WebcitBindIp && WEBCIT_LISTEN_IP="$RET"
81 set |grep WEBCIT |sed "s;^;export ;;" >/etc/default/webcit