bitque/docker/create-mc-defaults.sh
2023-04-02 22:34:30 +02:00

10 lines
243 B
Bash
Executable File

mc alias s minio http://minio:9000 $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD
for f in $(mc ls -q --no-color --json minio | jq .key | xargs echo); do
mc rb --force minio/$f
done
for d in $(echo $MINIO_DEFAULT_BUCKETS); do
mc mb minio/$d
done