Introduced-by: 8a4a432e8b6e41ff13c33698cc053079f6786aa2
Signed-off-by: Kotresh HR <khiremat@redhat.com>
#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