Skip to content

Commit 7a03f68

Browse files
committed
chore(storage): add check storage
1 parent 63d60da commit 7a03f68

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rootfs/bin/init-registry

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ has_bucket(){
1313
mc ls storage -json|jq -r '.key'|grep -w "${DRYCC_STORAGE_BUCKET}"
1414
}
1515

16+
mc ping storage -x
17+
1618
if [ -z "$(has_bucket)" ] ;then
1719
mc mb storage/"${DRYCC_STORAGE_BUCKET}"
1820
if [ -z "$(has_bucket)" ] ;then

0 commit comments

Comments
 (0)