Merge "[ceph-osd] fix to find empty directory logic"

This commit is contained in:
Zuul 2019-09-25 20:32:37 +00:00 committed by Gerrit Code Review
commit b87784332a

View File

@ -30,7 +30,7 @@ if [[ ! -d /var/lib/ceph/osd ]]; then
fi
# check if anything is present, if not, create an osd and its directory
if [[ -n "$(find /var/lib/ceph/osd -prune -empty)" ]]; then
if [[ -n "$(find /var/lib/ceph/osd -type d -empty ! -name "lost+found")" ]]; then
echo "Creating osd"
UUID=$(uuidgen)
OSD_SECRET=$(ceph-authtool --gen-print-key)