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