diff options
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 |
commit | f304ce3885450b13eb3d64a39bfe7d4738f6023f (patch) | |
tree | e960b67bb3106d90f54d7f5275337aafa50ad3e0 | |
parent | 67f5f857da5ff0c6068c05b9af4052ca76815544 (diff) | |
download | slackbuilds-f304ce3885450b13eb3d64a39bfe7d4738f6023f.tar.gz |
network/open-isns: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | network/open-isns/doinst.sh | 9 | ||||
-rw-r--r-- | network/open-isns/open-isns.SlackBuild | 2 |
2 files changed, 6 insertions, 5 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 diff --git a/network/open-isns/open-isns.SlackBuild b/network/open-isns/open-isns.SlackBuild index de6a2056b7..8aa11e23d4 100644 --- a/network/open-isns/open-isns.SlackBuild +++ b/network/open-isns/open-isns.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=open-isns VERSION=${VERSION:-0.99} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then |