POSTIN
/bin/sh
alias FIXME="perl -pi -e"
#Upgrade: remove line and reinstall it (only for Apache 1.3)
if [ $1 -gt 1 ]; then
for config in /etc/httpd/conf/{httpd,httpd-perl}.conf; do
if [ -e $config ]; then
FIXME 's/.*//s if (/Include.*horde.conf$/i);' $config
echo "Include conf.d/71_horde.conf" >> $config
fi
done
fi
#Install (only for Apache 1.3)
if [ $1 = "1" ]; then
for config in /etc/httpd/conf/{httpd,httpd-perl}.conf; do
if [ -e $config ]; then
echo "Include conf.d/71_horde.conf" >> $config
fi
done
fi
if [ -e /usr/sbin/ADVXctl ]; then /usr/sbin/ADVXctl update;fi
POSTUN
/bin/sh
alias FIXME="perl -pi -e"
#Uninstall (only for Apache 1.3)
if [ $1 = "0" ]; then
for config in /etc/httpd/conf/{httpd,httpd-perl}.conf; do
if [ -e $config ]; then
FIXME 's/.*//s if (/Include.*horde.conf$/i);' $config
fi
done
fi
if [ -e /usr/sbin/ADVXctl ]; then /usr/sbin/ADVXctl update;fi