mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
892776f70f
PR: 31937 Submitted by: maintainer
13 lines
383 B
Bash
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
|