summaryrefslogtreecommitdiff
path: root/system/multitail/doinst.sh
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2010-05-11 15:18:41 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 15:18:41 +0200
commit1975d4a1ec58b490155aa999ac6be190de4cdf0d (patch)
tree2dd7f3f26664780a0ed8a662b196ea49a06a5e13 /system/multitail/doinst.sh
parentee6d106d6a907b3e155bf44ee6a8d9a561a8b74a (diff)
downloadslackbuilds-1975d4a1ec58b490155aa999ac6be190de4cdf0d.tar.gz
system/multitail: Initial import
Diffstat (limited to 'system/multitail/doinst.sh')
-rw-r--r--system/multitail/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/multitail/doinst.sh b/system/multitail/doinst.sh
new file mode 100644
index 0000000000..9902d73847
--- /dev/null
+++ b/system/multitail/doinst.sh
@@ -0,0 +1,14 @@
+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/multitail.conf.new
+