Sophie

Sophie

distrib > Scientific%20Linux > 5x > i386 > by-pkgid > 95934a641a4877e34f920552ef9e2c06 > scriptlet

oddjob-0.27-12.el5.i386.rpm

PREUN

/bin/sh
if [ $1 -eq 0 ] ; then
	/sbin/service oddjobd stop > /dev/null 2>&1
	/sbin/chkconfig --del oddjobd
fi

POSTIN

/bin/sh
/sbin/chkconfig --add oddjobd
# Adjust older configuration files that may have been modified so that they
# point to the current location of the helper.
cfg=/etc/oddjobd.conf
if grep -q /usr/lib/oddjob/mkhomedir $cfg ; then
	sed -i 's^/usr/lib/oddjob/mkhomedir^/usr/libexec/oddjob/mkhomedir^g' $cfg
fi
if [ -f /var/lock/subsys/oddjobd ] ; then
	/bin/dbus-send --system --dest=com.redhat.oddjob /com/redhat/oddjob com.redhat.oddjob.reload
fi