Skip to content

Commit d54e502

Browse files
committed
fix(shell): check storage ready
1 parent a7f785f commit d54e502

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

rootfs/bin/init-registry

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ 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}"
1318

1419
htpasswd -Bbn "${DRYCC_REGISTRY_USERNAME}" "${DRYCC_REGISTRY_PASSWORD}" > "${REGISTRY_AUTH_HTPASSWD_PATH}"
15-
echo "create ${REGISTRY_AUTH_HTPASSWD_PATH} success"
20+
echo "create ${REGISTRY_AUTH_HTPASSWD_PATH} success"

0 commit comments

Comments
 (0)