From: Amitay Isaacs Date: Wed, 31 Jul 2019 02:12:14 +0000 (+1000) Subject: ctdb-eventscripts: Fix the regression in 01.reclock.script X-Git-Tag: talloc-2.3.1~986 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a7fc97daff69b8cba9c4e2da6a8e1399d6b1107;p=thirdparty%2Fsamba.git ctdb-eventscripts: Fix the regression in 01.reclock.script Commit ea7708d8c7fa674111ccea58b3cd0757765c702a simplified 01.reclock.script and removed include of functions file which is required for setting CTDB_HELPER_BINDIR and for die() function. Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- diff --git a/ctdb/config/events/legacy/01.reclock.script b/ctdb/config/events/legacy/01.reclock.script index 29822e1d48c..c1cdbbca7fe 100755 --- a/ctdb/config/events/legacy/01.reclock.script +++ b/ctdb/config/events/legacy/01.reclock.script @@ -4,6 +4,8 @@ [ -n "$CTDB_BASE" ] || \ CTDB_BASE=$(d=$(dirname "$0") ; cd -P "$d" ; dirname "$PWD") +. "${CTDB_BASE}/functions" + case "$1" in init) recovery_lock=$("${CTDB_HELPER_BINDIR}/ctdb-config" \