Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 86c9ebd9de25023be11700bbca1ea409 > scriptlet

perl-Apache-CVS-0.10-4.noarch.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	umask 027
        grep -v "^Include.*perl-Apache-CVS.conf" /etc/httpd/httpd.conf > \
                /etc/httpd/httpd.conf.tmp
        mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
        if [ -f /var/lock/subsys/httpd ]; then
                /etc/rc.d/init.d/httpd restart 1>&2
        fi
fi

POSTIN

/bin/sh
if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*perl-Apache-CVS.conf" /etc/httpd/httpd.conf; then
        echo "Include /etc/httpd/perl-Apache-CVS.conf" >> /etc/httpd/httpd.conf
fi
if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
else
        echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
fi