scripts-misc/garage/bucket-create.sh

16 lines
367 B
Bash
Raw Normal View History

2023-03-31 10:42:21 +02:00
#!/bin/bash
bucketname=$1
if [[ -z "$bucketname" ]]; then
echo "Usage: $0 bucket-name"
exit 1
fi
set -x
garage bucket create $bucketname
garage key new --name $bucketname
garage bucket allow --read --write --owner $bucketname --key $bucketname
2023-04-01 17:53:10 +02:00
garage bucket allow --read --write --owner $bucketname --key superadmin
2023-03-31 10:42:21 +02:00
garage bucket website --allow $bucketname