Skip to content

Commit 8b44022

Browse files
committed
fix(shell): check storage ready
1 parent 405090d commit 8b44022

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

rootfs/bin/create_bucket

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,9 @@ mc alias set storage \
99
--path "${DRYCC_STORAGE_PATH_STYLE}"
1010

1111
mc ping storage -x
12+
if ! mc admin info storage > /dev/null 2>&1; then
13+
sleep 9s
14+
else
15+
mc ready storage
16+
fi
1217
mc mb --ignore-existing storage/"${DRYCC_STORAGE_BUCKET}"

0 commit comments

Comments
 (0)