minio-init: check the bingo prefix without grep
All checks were successful
Deploy storage stack / deploy (push) Successful in 21s
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:
parent
61e93b64c8
commit
63283b1c47
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue