allow skipping roles without directory

master
lub 5 years ago
parent 7a05ced171
commit fd0fe176a2

@ -7,6 +7,10 @@ cd client
HOSTNAME="$HOSTNAME" docker-compose up -d HOSTNAME="$HOSTNAME" docker-compose up -d
cd - cd -
# allow empty match on * to prevent manual check if role_dir and osd_dir exists
shopt -s nullglob
#bring up mon, mds, mgr #bring up mon, mds, mgr
for role_dir in /ceph/m*; do for role_dir in /ceph/m*; do
role_name=$(basename "$role_dir") role_name=$(basename "$role_dir")