Sophie

Sophie

distrib > PLD > ra > i686 > media > dist > by-pkgid > 2fe1ec568c0e086f7bec799f313cfae0 > scriptlet

apache-mod_speedycgi-2.20-2.i686.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	/usr/sbin/apxs -e -A -n speedycgi /usr/lib/mod_speedycgi.so 1>&2
	grep -v "^Include.*mod_speedycgi.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 speedycgi /usr/lib/mod_speedycgi.so 1>&2
if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_speedycgi.conf" /etc/httpd/httpd.conf; then
	echo "Include /etc/httpd/mod_speedycgi.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