slackbuilds_ponce/system/cronie/doinst.sh

13 lines
251 B
Bash
Raw Normal View History

config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
rm $NEW
fi
}
config var/spool/cron/root.new
config etc/cron.deny.new