Merge "[ceph-osd] fix to find empty directory logic"
This commit is contained in:
commit
b87784332a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user