1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/mail/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