]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-scripts: Update statd-callout to try several configuration files
authorMartin Schwenke <martin@meltin.net>
Wed, 20 Mar 2019 10:22:43 +0000 (21:22 +1100)
committerMartin Schwenke <martins@samba.org>
Sun, 31 Mar 2019 10:45:20 +0000 (10:45 +0000)
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 <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@samba.org>
ctdb/config/statd-callout

index bf18b5586b3c1d5235a94b3223ed9227b6c69a99..b75135bbde5e31014082ad7887a085b08e79de2a 100755 (executable)
@@ -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"