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 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
Section: web
Priority: optional
Maintainer: Wilfried Goesgens <w.goesgens@outgesourced.org>
-Build-Depends: debhelper (>= 4), po-debconf, libical-dev, gettext
+Build-Depends: debhelper (>= 4), po-debconf, libical-dev, gettext, locales, localepurge
Standards-Version: 3.7.2
Package: citadel-webcit
Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, debconf, tinymce, citadel-common
+Depends: ${shlibs:Depends}, ${misc:Depends}, debconf, tinymce, citadel-common, openssl, locales, localepurge
Suggests: citadel-server, apache2 | apache
Description: web-based frontend to Citadel groupware server
WebCit is a web-based, AJAX-enabled frontend to the Citadel groupware system.
#1: -p flag
#1: port
#2: ssl
+ #4: -f flag for apache
# for ubuntu: check our volatile dirs.
if test ! -d $RUNDIR; then
# 1 if daemon was already running
# 2 if daemon could not be started
if $DAEMON -D$PIDFILE.$1 \
- -p$@ -t$LOGDIR/access.${1}.log ; then
+ -p$@ -t$LOGDIR/access.${1}.log $4; then
return 0
else
return 2
echo "Starting $DESC" "$NAME"
fi
- do_start $WEBCIT_HTTP_PORT $WEBCIT_CITADEL_IP $WEBCIT_CITADEL_PORT
- do_start $WEBCIT_HTTPS_PORT $WEBCIT_CITADEL_IP $WEBCIT_CITADEL_PORT -s
+ do_start $WEBCIT_HTTP_PORT $WEBCIT_CITADEL_IP $WEBCIT_CITADEL_PORT "" "$WEBCIT_APACHEFLAG"
+ do_start $WEBCIT_HTTPS_PORT $WEBCIT_CITADEL_IP $WEBCIT_CITADEL_PORT -s "$WEBCIT_APACHEFLAG"
if test -n "$MODERN"; then
case "$?" in