13 lines
562 B
Bash
Executable File
13 lines
562 B
Bash
Executable File
#!/bin/sh
|
|
# Creates the smoke bucket and its minimum policy. Idempotent.
|
|
#
|
|
# Deliberately not a round trip: this proves the server accepted an admin command, which is a
|
|
# different claim from "an object survives being written and read back". object-storage-smoke.sh
|
|
# makes that one.
|
|
set -eu
|
|
|
|
mc alias set caskeleton "${MINIO_ENDPOINT}" "${MINIO_ROOT_USER}" "${MINIO_ROOT_PASSWORD}"
|
|
mc mb --ignore-existing "caskeleton/${MINIO_BUCKET}"
|
|
mc anonymous set none "caskeleton/${MINIO_BUCKET}"
|
|
echo "minio-init: bucket ${MINIO_BUCKET} present, anonymous access denied"
|