3 # Skeleton maintainer script showing all the possible cases.
4 # Written by Charles Briscoe-Smith, March-June 1998. Public Domain.
6 # Abort if any command returns an error value
8 . /usr/share/debconf/confmodule
12 if [ ! -a /etc/$server/conf.d/webcit ]; then
13 if [ -f /etc/$server/httpd.conf \
14 -a -f /usr/share/wwwconfig-common/apache-uninclude_all.sh ]
17 . /usr/share/wwwconfig-common/apache-uninclude_all.sh
25 # Configure this package. If the package must prompt the user for
26 # information, do it here.
27 . /usr/share/debconf/confmodule
29 db_get "citadel/baseurl" && baseurl="$RET"
30 if echo "$baseurl"|grep -q "http"; then
31 if echo "$baseurl"|grep -q "https"; then
32 HOSTNAME= ServerName `echo "$baseurl" |sed "s;https://\(.*\)/.*;\1;"`
33 BASEURL=`echo "$baseurl" |sed "s;http://.*\..*/.*;\1;"`
35 HOSTNAME= ServerName `echo "$baseurl" |sed "s;https://\(.*\)/.*;\1;"`
36 BASEURL=`echo "$baseurl" |sed "s;https://.*\..*/.*;\1;"`
39 HOSTNAME="ServerName *"
45 DocumentRoot /var/www/
46 # ProxyPass /dotskip http://127.0.0.1:2000/dotskip
47 # ProxyPassReverse /dotskip http://127.0.0.1:2000/dotskip
48 ProxyPass /webcit/ http://127.0.0.1:2000/
49 ProxyPassReverse /webcit/ http://127.0.0.1:2000/
50 ProxyPass /listsub/ http://127.0.0.1:2000/listsub/
51 ProxyPassReverse /listsub/ http://127.0.0.1:2000/listsub/
52 ProxyPass /groupdav/ http://127.0.0.1:2000/groupdav/
53 ProxyPassReverse /groupdav/ http://127.0.0.1:2000/groupdav/
56 ucf /tmp/apache.conf /etc/citadel/apache.conf
57 db_get "citadel/webserver" && webserver="$RET"
59 Apache) webservers="apache";;
60 Apache-SSL) webservers="apache-ssl";;
61 Apache-Perl) webservers="apache-perl";;
72 for server in $webservers; do
73 test -d /etc/$server || continue
79 if [ ! -e /etc/$server/conf.d/webcit ]
81 ln -s /etc/citadel/apache.conf /etc/$server/conf.d/webcit
85 . /usr/share/wwwconfig-common/restart.sh
90 abort-upgrade|abort-remove|abort-deconfigure)
95 echo "postinst called with unknown argument \`$1'" >&2