aboutsummaryrefslogtreecommitdiffstats
path: root/www/horde2/pkg-deinstall
blob: 6a75b26f7a2313b414db7d4a87f77a28d553235a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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
    perl -pi -e "s:Include ${PKG_PREFIX}/etc/horde:# Include ${PKG_PREFIX}/etc/horde:g" \
        ${PKG_PREFIX}/etc/apache/httpd.conf
fi