3 . /usr/share/debconf/confmodule
12 # do we want to reconfigure?
13 if test "`echo $2 | sed -e 's/[.-]//g'`" -lt 127 \
19 # are we in first install?
20 if test "$1" = "configure"; then
25 if test "$DO_CONFIGURE" = "yes"; then
26 if test -e /etc/default/webcit; then
29 export WEBCIT_CITADEL_IP=127.0.0.1
30 export WEBCIT_CITADEL_PORT=504
34 while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do
38 echo aou $STATE>>/tmp/bla
39 db_input high citadel/WebcitApacheIntegration || true
41 echo aou $STATE>>/tmp/bla
44 db_get citadel/WebcitApacheIntegration
45 if test "$RET" = "Internal"; then
46 db_input high citadel/WebcitHttpPort || true
48 db_set citadel/WebcitHttpPort 8504 || true
52 db_get citadel/WebcitApacheIntegration || true
53 if test "$RET" = "Internal"; then
54 db_input high citadel/WebcitHttpsPort || true
55 export WEBCIT_LISTEN_IP=0.0.0.0
57 db_set citadel/WebcitHttpsPort -1
58 export WEBCIT_LISTEN_IP=127.0.0.1
62 db_input high citadel/WebcitInstallnote||true
73 db_get citadel/WebcitHttpPort && WEBCIT_HTTP_PORT="$RET"
74 db_get citadel/WebcitHttpsPort && WEBCIT_HTTPS_PORT="$RET"
75 db_get citadel/WebcitBindIp && WEBCIT_LISTEN_IP="$RET"
77 db_get ciatdel/WebcitWebserver &&WWWTYPE="$RET"
78 if test "$WWWTYPE" = "Internal"; then
81 WEBCIT_APACHEFLAG="-f"
84 set |grep WEBCIT |sed "s;^;export ;;" >/etc/default/webcit