2010-03-24 21:04:21 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
. /usr/share/debconf/confmodule
|
|
|
|
|
|
|
|
|
|
if [ -r /usr/share/dbconfig-common/dpkg/postinst.pgsql ] ; then
|
|
|
|
|
. /usr/share/dbconfig-common/dpkg/postinst.pgsql
|
2011-10-28 08:17:54 +02:00
|
|
|
dbc_go libreplan $@
|
2010-03-24 21:04:21 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [[ $1 = purge ]] ; then
|
2011-10-28 08:17:54 +02:00
|
|
|
echo "Removing libreplan Tomcat configuration bits..."
|
|
|
|
|
sed -i -e '/begin:libreplan/,/end:libreplan/d' /etc/tomcat6/policy.d/03catalina.policy
|
|
|
|
|
sed -i -e '/begin:libreplan/,/end:libreplan/d' /etc/tomcat6/context.xml
|
2010-03-24 21:04:21 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
#if [ -x /etc/init.d/tomcat5.5 ] ; then
|
|
|
|
|
# if [ -x "$(which invoke-rc.d 2> /dev/null)" ] ; then
|
|
|
|
|
# invoke-rc.d tomcat5.5 restart
|
|
|
|
|
# else
|
|
|
|
|
# /etc/init.d/tomcat5.5 restart
|
|
|
|
|
# fi
|
|
|
|
|
#fi
|
|
|
|
|
|
|
|
|
|
#DEBHELPER#
|
|
|
|
|
|