summaryrefslogtreecommitdiff
path: root/system/cronie/doinst.sh
diff options
context:
space:
mode:
authorChris Abela <kristofru@gmail.com>2012-08-12 12:57:04 -0400
committerRobby Workman <rworkman@slackbuilds.org>2012-08-14 22:30:50 -0500
commit6cde0c7ced6f9f730c021e6cc8871fce81de71b7 (patch)
treed5412c176c2f22b667e627a3c11e7cc45d8579a2 /system/cronie/doinst.sh
parent26bcd5c4b53be98263cf7036f0b0ec032685f5a0 (diff)
downloadslackbuilds-6cde0c7ced6f9f730c021e6cc8871fce81de71b7.tar.gz
system/cronie: Added (The standard UNIX cron daemon)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/cronie/doinst.sh')
-rw-r--r--system/cronie/doinst.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/cronie/doinst.sh b/system/cronie/doinst.sh
new file mode 100644
index 0000000000..542e2e7b90
--- /dev/null
+++ b/system/cronie/doinst.sh
@@ -0,0 +1,11 @@
+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 etc/cron.deny.new