1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/www/horde-base/pkg-deinstall
Ying-Chieh Liao 892776f70f upgrade to 1.2.7
PR:		31937
Submitted by:	maintainer
2001-11-13 08:22:47 +00:00

13 lines
383 B
Bash

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