Sophie

Sophie

distrib > PLD > ac > amd64 > media > dist > by-pkgid > 7ed17ce67cefe53fa3371f274b0bfdde > scriptlet

php4-sockets-4.4.6-4.amd64.rpm

POSTIN

/bin/sh

if [ "$1" = "1" ]; then 
	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || {
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache restart 1>&2 || :;
fi
fi };	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || {
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 
	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || {
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache restart 1>&2 || :;
fi
fi };	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || {
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

Triggers

php4-sockets < 3:4.4.0-2.1

/bin/sh
/bin/sed -i -e '/^extension[[:space:]]*=[[:space:]]*sockets\.so/d' /etc/php4/php.ini