mirror of
https://github.com/versity/versitygw.git
synced 2026-01-03 10:35:15 +00:00
13 lines
472 B
Bash
13 lines
472 B
Bash
#!/usr/bin/env bash
|
|
|
|
allow_public_access() {
|
|
if [ $# -ne 1 ]; then
|
|
log 2 "'allow_public_access' requires bucket name"
|
|
return 1
|
|
fi
|
|
if ! result=$(COMMAND_LOG="$COMMAND_LOG" BUCKET_NAME="$1" BLOCK_PUBLIC_ACLS="FALSE" IGNORE_PUBLIC_ACLS="FALSE" RESTRICT_PUBLIC_BUCKETS="FALSE" OUTPUT_FILE="$TEST_FILE_FOLDER/response.txt" ./tests/rest_scripts/put_public_access_block.sh); then
|
|
log 2 "error getting public access block: $result"
|
|
return 1
|
|
fi
|
|
return 0
|
|
} |