2 # Abort if any command returns an error value
4 . /usr/share/debconf/confmodule
10 if test ! -d /var/lib/citadel/keys; then
11 mkdir -p /var/lib/citadel/keys
13 if test ! -d /var/run/citadel/keys; then
14 mkdir -p /var/run/citadel/keys
16 ln -sf /usr/share/tinymce/www /etc/citadel/www/tiny_mce
17 db_get citadel/WebcitHttpPort && http_port="$RET"
18 db_get citadel/WebcitHttpsPort && https_port="$RET"
20 echo "aplying your settings"
22 export WEBCIT_HTTP_PORT=$http_port
23 export WEBCIT_HTTPS_PORT=$https_port
24 export WEBCIT_CITADEL_IP=127.0.0.1
25 export WEBCIT_CITADEL_PORT=504
26 export WEBCIT_LISTEN_IP=0.0.0.0
27 " >>/etc/default/webcit
33 abort-upgrade|abort-remove|abort-deconfigure)
35 *) echo "$0: didn't understand being called with '$1'" 1>&2