]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
stop.sh: Fix umount in stop.sh 46888/head
authorKotresh HR <khiremat@redhat.com>
Wed, 29 Jun 2022 06:50:23 +0000 (12:20 +0530)
committerKotresh HR <khiremat@redhat.com>
Wed, 29 Jun 2022 06:53:14 +0000 (12:23 +0530)
Introduced-by: 8a4a432e8b6e41ff13c33698cc053079f6786aa2
Signed-off-by: Kotresh HR <khiremat@redhat.com>
src/stop.sh

index 60b6216b6840a5720300061adfc18c26debfef47..1f65ea2f33b0c4856290d39ff5c2c07a64192c1b 100755 (executable)
@@ -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