Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 455e9cee7c68bcc6168c67054823911b > scriptlet

yum-2.6.1-2.noarch.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	/sbin/chkconfig --del yum
	{
if [ -f /var/lock/subsys/yum ]; then
/sbin/service yum stop 1>&2 || :;
fi };fi

POSTIN

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