Laravel_pc_perso/scripts/create-minio-bucket.sh
2024-06-12 13:02:54 +02:00

12 lines
313 B
Bash

#!/usr/bin/env bash
if [[ -d /usr/local/share/minio/$1 ]]; then
echo "Bucket already exists, skipping..."
exit
fi
mc mb /usr/local/share/minio/$1
mc anonymous set $2 /usr/local/share/minio/$1
# Minio CLI Makes Buckets Under Root For Some Reason
sudo chown minio-user:minio-user /usr/local/share/minio/*