Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 076730d073cacf9dfe06fcd2ae318010 > scriptlet

cfengine-2.2.10-6.fc14.i686.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
    /sbin/install-info --delete --info-dir=/usr/share/info /usr/share/info/cfengine*.info* 2> /dev/null || :
    /sbin/service cfenvd stop >/dev/null 2>&1 || :
    /sbin/service cfexecd stop >/dev/null 2>&1 || :
    /sbin/service cfservd stop >/dev/null 2>&1 || :
	/sbin/chkconfig --del cfenvd
	/sbin/chkconfig --del cfexecd
	/sbin/chkconfig --del cfservd
fi

POSTIN

/bin/sh
# cfagent won't run nicely, unless your host has keys.
if [ ! -d /mnt/sysimage -a ! -f /var/cfengine/ppkeys/localhost.priv ]; then
	/usr/sbin/cfkey >/dev/null || :
fi
/sbin/install-info --info-dir=/usr/share/info /usr/share/info/cfengine*.info* 2> /dev/null || :
# add init files to chkconfig
if [ "$1" = "1" ]; then
	/sbin/chkconfig --add cfenvd
	/sbin/chkconfig --add cfexecd
	/sbin/chkconfig --add cfservd
fi

POSTUN

/bin/sh
if [ $1 -ge 1 ]; then
    /sbin/service cfenvd condrestart >/dev/null 2>&1 || :
    /sbin/service cfexecd condrestart >/dev/null 2>&1 || :
    /sbin/service cfservd condrestart >/dev/null 2>&1 || :
fi