summaryrefslogtreecommitdiff
path: root/system/amanda/doinst.sh
diff options
context:
space:
mode:
authorChristopher Walker <kris240376@gmail.com>2010-05-11 20:01:52 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 20:01:52 +0200
commita7622c3887e22c11125637a71760ffe7e9470ea8 (patch)
tree7957b3e2510ef023ef5b2028608adda8f53c65d3 /system/amanda/doinst.sh
parent763f46879733bc10101ccae00d0f0f61049e0c34 (diff)
downloadslackbuilds-a7622c3887e22c11125637a71760ffe7e9470ea8.tar.gz
system/amanda: Added to 12.0 repository
Diffstat (limited to 'system/amanda/doinst.sh')
-rw-r--r--system/amanda/doinst.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/system/amanda/doinst.sh b/system/amanda/doinst.sh
new file mode 100644
index 0000000000..6910610d70
--- /dev/null
+++ b/system/amanda/doinst.sh
@@ -0,0 +1,26 @@
+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/amanda/3hole.ps.new
+config etc/amanda/8.5x11.ps.new
+config etc/amanda/DIN-A4.ps.new
+config etc/amanda/DLT.ps.new
+config etc/amanda/EXB-8500.ps.new
+config etc/amanda/HP-DAT.ps.new
+config etc/amanda/amanda-client.conf.new
+config etc/amanda/amanda.conf.new
+config etc/amanda/chg-mcutil.conf.new
+config etc/amanda/chg-multi.conf.new
+config etc/amanda/chg-scsi.conf.new
+config etc/amanda/disklist.new
+