- if test "`echo $2 | sed -e 's/[.-]//g'`" -lt 127 \
- -o $1 = reconfigure
- then
- db_input high citadel/WebcitHttpPort
- db_input high citadel/WebcitHttpsPort
- db_input high citadel/WebcitInstallnote
+ if test "`echo $2 | sed -e 's/[.-]//g'`" -lt 127 \
+ -o $1 = reconfigure
+ then
+
+
+ STATE=1
+ LASTSTATE=2
+ while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do
+ case "$STATE" in
+ 1)
+ db_input high citadel/WebcitApacheIntegration
+ ;;
+ 2)
+ db_get citadel/WebcitApacheIntegration
+ if test "$RET" = "Internal"; then
+ db_input high citadel/WebcitHttpPort
+ else
+ db_set citadel/WebcitHttpPort 8504
+ fi
+ ;;
+ 3)
+ db_get citadel/WebcitApacheIntegration
+ if test "$RET" = "Internal"; then
+ db_input high citadel/WebcitHttpsPort
+ db_set citadel/WebcitBindIp 0.0.0.0
+ else
+ db_set citadel/WebcitHttpsPort -1
+ db_set citadel/WebcitBindIp 127.0.0.1
+ fi
+ ;;
+ 4)
+ db_input high citadel/WebcitInstallnote
+ ;;
+ esac
+ if db_go; then
+ STATE=$(($STATE + 1))
+ else
+ STATE=$(($STATE - 1))
+ fi
+
+ done