From: Martin Schwenke Date: Wed, 20 Mar 2019 10:22:43 +0000 (+1100) Subject: ctdb-scripts: Update statd-callout to try several configuration files X-Git-Tag: tdb-1.4.1~566 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2bd4085896804ee2da811e17f18c78a5bf4e658;p=thirdparty%2Fsamba.git ctdb-scripts: Update statd-callout to try several configuration files The alternative seems to be to try something via CTDB_NFS_CALLOUT. That would be complicated and seems like overkill for something this simple. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13860 Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/config/statd-callout b/ctdb/config/statd-callout index bf18b5586b3..b75135bbde5 100755 --- a/ctdb/config/statd-callout +++ b/ctdb/config/statd-callout @@ -20,7 +20,8 @@ die () exit 1 } -load_system_config "nfs" +# Try different variables to find config file for NFS_HOSTNAME +load_system_config "nfs" "nfs-common" [ -n "$NFS_HOSTNAME" ] || \ die "NFS_HOSTNAME is not configured. statd-callout failed"