#!/bin/sh # # $FreeBSD$ # # Try to restore httpd.conf when deinstalling Le Facturier if [ x$2 != xDEINSTALL ]; then exit fi # honor PREFIX if installed from package if [ ! -z $PKG_PREFIX ]; then FACT_ETC=${PKG_PREFIX%/}/etc/facturier else FACT_ETC=%%ETCDIR%% fi APACHE_CONF=%%APACHE_CONF%% if [ -f ${APACHE_CONF} ] ; then echo "Cleanup httpd.conf..." sed -i '' -e '/Include.*facturier/d' \ -e '/Le Facturier/d' ${APACHE_CONF} fi