Sophie

Sophie

distrib > PLD > ra > i686 > media > dist > by-pkgid > e97c841ac14aea24101b77d7440e5e33 > scriptlet

php-4.2.3-8.i686.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	/usr/sbin/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
	perl -pi -e \
		's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
		/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
perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
	/etc/httpd/httpd.conf
/usr/sbin/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
if [ -f /var/lock/subsys/httpd ]; then
	/etc/rc.d/init.d/httpd restart 1>&2
fi