From 37986615e298d39fa9ac1d77ecb035f028f3ed20 Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Wed, 29 Jun 2022 12:20:23 +0530 Subject: [PATCH] stop.sh: Fix umount in stop.sh Introduced-by: 8a4a432e8b6e41ff13c33698cc053079f6786aa2 Signed-off-by: Kotresh HR --- src/stop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5