3 . /usr/share/debconf/confmodule
12 # do we want to reconfigure?
13 if test "$1" = reconfigure; then
17 # are we in first install?
18 if test "$1" = "configure"; then
23 if test "$DO_CONFIGURE" = "yes"; then
24 if test -e /etc/default/webcit; then
33 if test "$WEBCIT_APACHEFLAG" = "-f"; then
34 db_set citadel/WebcitApacheIntegration Apache2
36 db_set citadel/WebcitApacheIntegration Internal
38 db_set citadel/WebcitHttpPort $WEBCIT_HTTP_PORT
39 db_set citadel/WebcitHttpsPort $WEBCIT_HTTPS_PORT
40 db_set citadel/WebcitOfferLang $WEBCIT_LANG
44 while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do
48 db_input high citadel/WebcitApacheIntegration || true
51 db_get citadel/WebcitApacheIntegration
52 if test "$RET" = "Internal"; then
53 db_set citadel/WebcitHttpPort 80
54 db_input high citadel/WebcitHttpPort || true
58 db_get citadel/WebcitApacheIntegration
59 if test "$RET" = "Internal"; then
60 db_set citadel/WebcitHttpsPort 443
61 db_input high citadel/WebcitHttpsPort || true
65 db_input high citadel/WebcitOfferLang || true
68 db_input high citadel/WebcitInstallnote||true
78 set |grep WEBCIT |sed "s;^;export ;;" >/etc/default/webcit