diff options
author | Anoop C S <anoopcs@redhat.com> | 2017-10-11 13:29:13 +0530 |
---|---|---|
committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-10-18 14:27:41 +0000 |
commit | 087703fae449b725ebd82bc3cd65763a016fb098 (patch) | |
tree | 34ba22f3c5547b0b6e8a29a6b10c719639ebd005 /extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh | |
parent | f0650fef60ca557ea1c60458f705ac9b52854b39 (diff) |
extras/hooks: Fix errors reported via shellcheck utility
Change-Id: I217c6b2a39955f1709bb3452b00d33c2dcb60faa
BUG: 1500649
Signed-off-by: Anoop C S <anoopcs@redhat.com>
Diffstat (limited to 'extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh')
-rwxr-xr-x | extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh b/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh index c0aa73548fd..885ed03ad5b 100755 --- a/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh +++ b/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh @@ -104,7 +104,7 @@ function check_volume_status() echo $status } -mount_cmd="mount -t glusterfs "$local_node_hostname":/gluster_shared_storage \ +mount_cmd="mount -t glusterfs $local_node_hostname:/gluster_shared_storage \ /var/run/gluster/shared_storage" if [ "$option" == "enable" ]; then @@ -117,7 +117,7 @@ if [ "$option" == "enable" ]; then if [ "$retry" == 3 ]; then break; fi - status = check_volume_status; + status=$(check_volume_status) done # Mount the volume on all the nodes umount /var/run/gluster/shared_storage |