summaryrefslogtreecommitdiffstats
path: root/network/open-isns/doinst.sh
diff options
context:
space:
mode:
author Wayne Cuddy <wcuddy@gmail.com>2019-01-24 07:56:10 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2019-01-24 07:56:10 +0700
commitedbbdbf3cb82d8c5e165088ac32c3da069cdca38 (patch)
treec5c7f6df623c5a9947773e9b5d537666a1a2bdb0 /network/open-isns/doinst.sh
parent4a66a1b108afdfa38296e18e83419bc8cdee3021 (diff)
downloadslackbuilds-edbbdbf3cb82d8c5e165088ac32c3da069cdca38.tar.gz
slackbuilds-edbbdbf3cb82d8c5e165088ac32c3da069cdca38.tar.xz
network/open-isns: Added (Internet Storage Name Service).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/open-isns/doinst.sh')
-rw-r--r--network/open-isns/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/network/open-isns/doinst.sh b/network/open-isns/doinst.sh
new file mode 100644
index 0000000000..a14b0d3ab9
--- /dev/null
+++ b/network/open-isns/doinst.sh
@@ -0,0 +1,16 @@
+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/isns/isnsd.conf
+config etc/isns/isnsdd.conf
+config etc/isnsisnsadm.conf