aboutsummaryrefslogblamecommitdiff
path: root/www/horde-base/pkg-deinstall
blob: 8277aa19805ccfa542bac473c6fdfcf5b17cc4d0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                              
#!/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