summaryrefslogtreecommitdiffstats
path: root/system/tiger/doinst.sh
diff options
context:
space:
mode:
author pyllyukko2011-10-15 14:35:41 +0200
committer Niels Horn2011-10-22 14:17:07 +0200
commitb663f5c1fefcd902bdeaf686af376b68a889349c (patch)
tree74990fc778cee891fda75e39f4350647bbdd44b3 /system/tiger/doinst.sh
parentad917533115e9d6c7d4b8e743c6a61a1933116ee (diff)
downloadslackbuilds-b663f5c1fefcd902bdeaf686af376b68a889349c.tar.gz
system/tiger: Added (Report system security vulnerabilities)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'system/tiger/doinst.sh')
-rw-r--r--system/tiger/doinst.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/system/tiger/doinst.sh b/system/tiger/doinst.sh
new file mode 100644
index 0000000000..f98853d683
--- /dev/null
+++ b/system/tiger/doinst.sh
@@ -0,0 +1,18 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/tiger/cronrc.new
+config etc/tiger/tigerrc.new
+config etc/tiger/tiger.ignore.new
+config etc/cron.d/tiger.new
+config etc/default/tiger.new