From: Kotresh HR Date: Wed, 29 Jun 2022 06:50:23 +0000 (+0530) Subject: stop.sh: Fix umount in stop.sh X-Git-Tag: v18.0.0~602^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F46888%2Fhead;p=ceph.git stop.sh: Fix umount in stop.sh Introduced-by: 8a4a432e8b6e41ff13c33698cc053079f6786aa2 Signed-off-by: Kotresh HR --- diff --git a/src/stop.sh b/src/stop.sh index 60b6216b6840a..1f65ea2f33b0c 100755 --- a/src/stop.sh +++ b/src/stop.sh @@ -105,7 +105,7 @@ do_umountall() { #Get fuse mounts of the cluster num_of_ceph_mdss=$(ps -e | grep \ ceph-mds$ | wc -l) - if test num_of_ceph_mdss -ne 0; then + if test $num_of_ceph_mdss -ne 0; then CEPH_FUSE_MNTS=$("${CEPH_BIN}"/ceph -c $conf_fn tell mds.* client ls 2>/dev/null | grep mount_point | tr -d '",' | awk '{print $2}') [ -n "$CEPH_FUSE_MNTS" ] && sudo umount -f $CEPH_FUSE_MNTS fi