Sophie

Sophie

distrib > PLD > ac > amd64 > media > dist > by-pkgid > 2c55b09a6232028fe82951925db96a0d > scriptlet

php-snmp-5.2.1-6.amd64.rpm

POSTIN

/bin/sh
if [ "$1" = "1" ]; then 
	
[ ! -f /etc/apache/conf.d/??_mod_php.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/conf.d/??_mod_php.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 };if [ -f /etc/rc.d/init.d/php-fcgi ]; then 
	PHP_FCGI_BINARY=; . /etc/sysconfig/php-fcgi 2>/dev/null 
	if [[ ${PHP_FCGI_BINARY:-php.fcgi} = *php.fcgi* ]]; then 
		{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/php-fcgi ] && . /etc/sysconfig/php-fcgi
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/php-fcgi ]; then
/sbin/service php-fcgi restart 1>&2 || :;
fi
fi };	fi 
fi 
 
fi

POSTUN

/bin/sh
if [ "$1" = "0" ]; then 
	
[ ! -f /etc/apache/conf.d/??_mod_php.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/conf.d/??_mod_php.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 };if [ -f /etc/rc.d/init.d/php-fcgi ]; then 
	PHP_FCGI_BINARY=; . /etc/sysconfig/php-fcgi 2>/dev/null 
	if [[ ${PHP_FCGI_BINARY:-php.fcgi} = *php.fcgi* ]]; then 
		{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/php-fcgi ] && . /etc/sysconfig/php-fcgi
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/php-fcgi ]; then
/sbin/service php-fcgi restart 1>&2 || :;
fi
fi };	fi 
fi 
 
fi

Triggers

php-snmp < 4:5.0.4-9.1

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