minio-init: check the bingo prefix without grep
All checks were successful
Deploy storage stack / deploy (push) Successful in 21s

The minio/mc image has no grep, so the emptiness check always failed and
the photos were never mirrored into datacenterbingo-photos.

Assisted-by: Claude:opus-5
This commit is contained in:
Sergei Poljanski 2026-10-12 04:15:58 +04:00
commit 63283b1c47
Signed by: asxpi
GPG key ID: 4F8851660FA4121B

View file

@ -83,7 +83,8 @@ write_ro_prefix_policy "datacenterbingo-photos-ro" "datacenterbingo-photos" ""
# Migration from asxpio-invoices/bingo/: copy whatever is missing. Remove
# this (and the old bingo-ro policy below) once the old prefix is deleted.
if mc ls "local/asxpio-invoices/bingo/" 2>/dev/null | grep -q .; then
# (The mc image has no grep; test the listing with plain sh.)
if [ -n "$(mc ls "local/asxpio-invoices/bingo/" 2>/dev/null)" ]; then
mc mirror --quiet "local/asxpio-invoices/bingo" "local/datacenterbingo-photos/bingo"
fi