Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 01f4c7b056135822ac098b42abcf1b9d > scriptlet

apache-mod_php4-4.4.6-4.amd64.rpm

POSTIN

/bin/sh
if [ "$1" = "1" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd restart 1>&2 || :;
fi
fi };fi

POSTUN

/bin/sh
if [ "$1" = "0" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd restart 1>&2 || :;
fi
fi };fi

# so tired of typing... so decided to create macros
# macro called at extension post scriptlet

# macro called at extension postun scriptlet

Triggers

apache-mod_php4 < 3:4.4.0-2.16

/bin/sh
# for fixed php-SAPI.ini, the poor php-apache.ini was never read for apache2
if [ -f /etc/php4/php-apache.ini.rpmsave ]; then
	cp -f /etc/php4/php-apache2handler.ini{,.rpmnew}
	mv -f /etc/php4/php-apache.ini.rpmsave /etc/php4/php-apache2handler.ini
fi

php4 < 3:4.3.11-4.16

/bin/sh
# for fixed php-SAPI.ini, the poor php-apache.ini was never read for apache2
if [ -f /etc/php4/php-apache.ini.rpmsave ]; then
	cp -f /etc/php4/php-apache2handler.ini{,.rpmnew}
	mv -f /etc/php4/php-apache.ini.rpmsave /etc/php4/php-apache2handler.ini
fi