mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
c207926512
PR: 31904 Submitted by: maintainer
13 lines
375 B
Bash
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
|