aboutsummaryrefslogtreecommitdiffstats
path: root/mail/horde4-imp/pkg-deinstall
blob: ee55cbb6519e7453db8bb2ac8db70bc381538b61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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