ctdb-scripts: Use "git config" as last resort to parse nfs.conf
commitb20ccaa36da23c8ee84b117b2e82e98bd2be4fcc
authorMartin Schwenke <martin@meltin.net>
Thu, 21 Jul 2022 04:22:25 +0000 (21 14:22 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 22 Jul 2022 16:09:31 +0000 (22 16:09 +0000)
tree81edad3f8b4273dd8b58a22c6537c1becf3f33f4
parentdb37043bc5c67e536bcaaf1941cb12ec2e72efc9
ctdb-scripts: Use "git config" as last resort to parse nfs.conf

Some versions of nfs-utils (e.g. recent CentOS 7) use /etc/nfs.conf
but do not include the nfsconf utility to extract values from the
file.  However, git has an excellent conf file parser, so use it as a
last resort.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/statd-callout