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/lib64/oddjob/mkhomedir $cfg ; then
sed -i 's^/usr/lib64/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