config is in citadel-webcit 917-dfsg-2.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
db_version 2.0
db_capb backup
DO_CONFIGURE=no
if test -n "$2"; then
# do we want to reconfigure?
if test "$1" = reconfigure; then
DO_CONFIGURE=yes
fi
else
# are we in first install?
if test "$1" = "configure"; then
DO_CONFIGURE=yes
fi
fi
if test "$DO_CONFIGURE" = "yes"; then
if test -e /etc/default/webcit; then
. /etc/default/webcit
else
WEBCIT_APACHEFLAG=" "
WEBCIT_HTTP_PORT=8504
WEBCIT_HTTPS_PORT=-1
WEBCIT_LANG=UNLIMITED
fi
if test "$WEBCIT_APACHEFLAG" = "-f"; then
db_set citadel/WebcitApacheIntegration Apache2
else
db_set citadel/WebcitApacheIntegration Internal
fi
db_set citadel/WebcitHttpPort $WEBCIT_HTTP_PORT
db_set citadel/WebcitHttpsPort $WEBCIT_HTTPS_PORT
db_set citadel/WebcitOfferLang $WEBCIT_LANG
STATE=1
LASTSTATE=4
while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do
case "$STATE" in
1)
db_input high citadel/WebcitApacheIntegration || true
;;
2)
db_get citadel/WebcitApacheIntegration
if test "$RET" = "Internal"; then
db_set citadel/WebcitHttpPort 80
db_input high citadel/WebcitHttpPort || true
fi
;;
3)
db_get citadel/WebcitApacheIntegration
if test "$RET" = "Internal"; then
db_set citadel/WebcitHttpsPort 443
db_input high citadel/WebcitHttpsPort || true
fi
;;
4)
db_input high citadel/WebcitOfferLang || true
;;
esac
if db_go; then
STATE=$(($STATE + 1))
else
STATE=$(($STATE - 1))
fi
done
fi
exit 0
|