* resynced some functionality with pkg-citadel
[citadel.git] / webcit / debian / citadel-webcit.config
index c8c58bd50145b60c066c89c481a36bd2b80dc146..b266d2cb6d44527b18876633a4736d4eab56696d 100755 (executable)
@@ -30,15 +30,13 @@ if test "$DO_CONFIGURE" = "yes"; then
        export WEBCIT_CITADEL_PORT=504
     fi
     STATE=1
-    LASTSTATE=4
+    LASTSTATE=5
     while [ "$STATE" != 0 -a "$STATE" -le "$LASTSTATE" ]; do
 
        case "$STATE" in
            1)
-       echo aou $STATE>>/tmp/bla
                db_input high citadel/WebcitApacheIntegration || true
                db_go
-       echo aou $STATE>>/tmp/bla
                ;;
            2)
                db_get citadel/WebcitApacheIntegration
@@ -59,6 +57,10 @@ if test "$DO_CONFIGURE" = "yes"; then
                fi
                ;;
            4)
+               db_input high citadel/WebcitOfferLang || true
+               db_go
+               ;;
+           5)
                db_input high citadel/WebcitInstallnote||true
                ;;
        esac
@@ -70,11 +72,18 @@ if test "$DO_CONFIGURE" = "yes"; then
        
     done
     db_go
-    db_get ciatdel/WebcitWebserver &&WWWTYPE="$RET"
     db_get citadel/WebcitHttpPort && WEBCIT_HTTP_PORT="$RET"
     db_get citadel/WebcitHttpsPort && WEBCIT_HTTPS_PORT="$RET"
     db_get citadel/WebcitBindIp && WEBCIT_LISTEN_IP="$RET"
+    db_get citadel/WebcitOfferLang && WEBCIT_LANG="$RET"
     
+    db_get ciatdel/WebcitWebserver &&WWWTYPE="$RET"
+    if test "$WWWTYPE" = "Internal"; then
+       WEBCIT_APACHEFLAG=" "
+    else
+       WEBCIT_APACHEFLAG="-f"
+    fi
+
     set |grep WEBCIT |sed "s;^;export ;;" >/etc/default/webcit
 fi