#!/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 sed_inplace -i.tmp -e "s:Include ${PKG_PREFIX}/etc/horde:# Include ${PKG_PREFIX}/etc/horde:g" \ ${PKG_PREFIX}/etc/apache/httpd.conf rm ${PKG_PREFIX}/etc/apache/httpd.conf.tmp fi