Sophie

Sophie

distrib > PLD > ra > i686 > media > dist > by-pkgid > 6f1c4c71c4d521960674643b22148d39 > scriptlet

apache-mod_aspseek-1.2.8-4.i686.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
        /usr/sbin/apxs -e -A -n aspseek /usr/lib/apache/mod_aspseek.so 1>&2
        grep -v "^Include.*mod_aspseek.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
/usr/sbin/apxs -e -a -n aspseek /usr/lib/apache/mod_aspseek.so 1>&2
if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_aspseek.conf" /etc/httpd/httpd.conf; then
        echo "Include /etc/httpd/mod_aspseek.conf" >> /etc/httpd/httpd.conf
fi
if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
fi