summaryrefslogtreecommitdiff
path: root/system/ivman/doinst.sh
diff options
context:
space:
mode:
authorMenno E. Duursma <druiloor@zonnet.nl>2010-05-11 15:18:40 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 15:18:40 +0200
commit09185668b0756017df6d7387cd35f2bbe81f8c75 (patch)
tree7dd2ac541463178545abd5d5aa970ded035fe5c8 /system/ivman/doinst.sh
parent58b15e22bd75f2e7d62990aafbd128178ee895ca (diff)
downloadslackbuilds-09185668b0756017df6d7387cd35f2bbe81f8c75.tar.gz
system/ivman: Initial import
Diffstat (limited to 'system/ivman/doinst.sh')
-rw-r--r--system/ivman/doinst.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/system/ivman/doinst.sh b/system/ivman/doinst.sh
new file mode 100644
index 0000000000..f8bc992646
--- /dev/null
+++ b/system/ivman/doinst.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+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/ivman/IvmConfigActions.xml
+config etc/ivman/IvmConfigProperties.xml
+config etc/ivman/IvmConfigBase.xml
+config etc/ivman/IvmConfigConditions.xml
+