]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-scripts: Quote variable expansions
authorMartin Schwenke <mschwenke@ddn.com>
Tue, 5 Mar 2024 03:44:32 +0000 (14:44 +1100)
committerVolker Lendecke <vl@samba.org>
Thu, 30 May 2024 11:42:30 +0000 (11:42 +0000)
Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
ctdb/doc/examples/nfs-ganesha-callout

index 2c7e1fad85a5898d87a3de7fdf2adc2489a06d3b..a68cffeda107720c63bd677513aacbbc70b85301 100755 (executable)
@@ -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}"
                ;;