From: Martin Schwenke Date: Tue, 5 Mar 2024 03:44:32 +0000 (+1100) Subject: ctdb-scripts: Quote variable expansions X-Git-Tag: tdb-1.4.11~526 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a534f7134789baea547e6b3686e0c60fcd5cc81c;p=thirdparty%2Fsamba.git ctdb-scripts: Quote variable expansions Signed-off-by: Martin Schwenke Reviewed-by: Volker Lendecke --- diff --git a/ctdb/doc/examples/nfs-ganesha-callout b/ctdb/doc/examples/nfs-ganesha-callout index 2c7e1fad85a..a68cffeda10 100755 --- a/ctdb/doc/examples/nfs-ganesha-callout +++ b/ctdb/doc/examples/nfs-ganesha-callout @@ -165,7 +165,7 @@ check_ln() # Return 'active' if the shared filesystem is accessible. get_cluster_fs_state() { - case $state_fs in + case "$state_fs" in gpfs) /usr/lpp/mmfs/bin/mmgetstate | awk 'NR == 4 { print $3 }' ;; @@ -191,7 +191,7 @@ create_ganesha_recdirs() exit 0 fi - case $state_fs in + case "$state_fs" in gpfs) _mntpt=$(echo "$_mounts" | sort | awk 'NR == 1 {print $3}') _link_dst="${_mntpt}/${ganesha_rec_subdir}" @@ -287,7 +287,7 @@ nfs_takeip() { _ip="$2" - case $state_fs in + case "$state_fs" in glusterfs) check_ln "$NODESTATEDIR" "${GANSTATEDIR}/${_ip}" ;;