freebsd-ports/mail/horde4-imp/pkg-deinstall
Ying-Chieh Liao c207926512 upgrade to 2.2.7
PR:		31904
Submitted by:	maintainer
2001-11-14 00:56:29 +00:00

13 lines
375 B
Bash

#!/bin/sh
# Try to restore httpd.conf when deinstalling IMP
if [ x$2 != xDEINSTALL ]; then
exit
fi
if [ -f ${PKG_PREFIX}/etc/apache/httpd.conf.beforeIMP ] ; then
echo "Restoring httpd.conf..."
cp ${PKG_PREFIX}/etc/apache/httpd.conf ${PKG_PREFIX}/etc/apache/httpd.conf.deinstIMP
mv ${PKG_PREFIX}/etc/apache/httpd.conf.beforeIMP ${PKG_PREFIX}/etc/apache/httpd.conf
fi