summaryrefslogtreecommitdiffstats
path: root/network/open-isns/doinst.sh
diff options
context:
space:
mode:
author Wayne Cuddy <wcuddy@gmail.com>2019-04-12 22:00:38 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2019-04-12 22:00:38 +0700
commitf304ce3885450b13eb3d64a39bfe7d4738f6023f (patch)
treee960b67bb3106d90f54d7f5275337aafa50ad3e0 /network/open-isns/doinst.sh
parent67f5f857da5ff0c6068c05b9af4052ca76815544 (diff)
downloadslackbuilds-f304ce3885450b13eb3d64a39bfe7d4738f6023f.tar.gz
slackbuilds-f304ce3885450b13eb3d64a39bfe7d4738f6023f.tar.xz
network/open-isns: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/open-isns/doinst.sh')
-rw-r--r--network/open-isns/doinst.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/network/open-isns/doinst.sh b/network/open-isns/doinst.sh
index a14b0d3ab9..8fad217bd6 100644
--- a/network/open-isns/doinst.sh
+++ b/network/open-isns/doinst.sh
@@ -1,10 +1,11 @@
+
config() {
- NEW="$1"
- OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ NEW="${1}.new"
+ OLD="$1"
# 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
+ elif [ "$(md5sum <$OLD)" = "$(md5sum <$NEW)" ]; then
# toss the redundant copy
rm $NEW
fi
@@ -13,4 +14,4 @@ config() {
config etc/isns/isnsd.conf
config etc/isns/isnsdd.conf
-config etc/isnsisnsadm.conf
+config etc/isns/isnsadm.conf