commit | 333f21bee9897d287e8a38298f76a8c2ad11ad4c | [log] [tgz] |
---|---|---|
author | Jiri Broulik <jbroulik@mirantis.com> | Thu Jul 13 23:39:01 2017 +0200 |
committer | Jiri Broulik <jbroulik@mirantis.com> | Thu Jul 13 23:39:01 2017 +0200 |
tree | 8e0161e116e38a02f36638dedca560d83432aa7b | |
parent | f7ce71dd5a379a42cd4400803b8d9f402b404c6d [diff] |
backup non leader return code fix Change-Id: I9930454d26ee5c9b8abe38d61796db5c7210b8d0
diff --git a/zookeeper/files/backup/zookeeper-backup-client-runner.sh b/zookeeper/files/backup/zookeeper-backup-client-runner.sh index fb23229..a6e7cc8 100644 --- a/zookeeper/files/backup/zookeeper-backup-client-runner.sh +++ b/zookeeper/files/backup/zookeeper-backup-client-runner.sh
@@ -53,7 +53,7 @@ if [ $RC -gt 0 ] && [ ! -s "$TMPDIR/$TMPLOG" ]; then printf "Not a zookeper leader. This script does backup just on zookeper leader.\n" [ "$TMPDIR" != "/" ] && rm -rf "$TMPDIR" - exit 1 + exit 0 else # Include the timestamp in the filename FILENAME="$BACKUPDIR/$TIMESTAMP/zookeeper-$TIMESTAMP.tar.gz"