15 lines
295 B
Bash
15 lines
295 B
Bash
|
#!/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
|
||
|
garage bucket website --allow $bucketname
|