github.com/swiftstack/ProxyFS@v0.0.0-20210203235616-4017c267d62f/cookbooks/proxyfs/files/default/usr/bin/set_up_swift3 (about) 1 #!/bin/bash 2 3 # Copyright (c) 2015-2021, NVIDIA CORPORATION. 4 # SPDX-License-Identifier: Apache-2.0 5 6 PROXYSERVERCONF=/etc/swift/proxy-server.conf 7 grep "\[filter\:swift3\]" $PROXYSERVERCONF > /dev/null 2>&1 8 if [ $? -eq 0 ]; then 9 echo "Swift3 is already set up. No need to do anything. Run enable_swift3 to enable this configuration." 10 exit 0 11 fi 12 13 set -e 14 15 cat <<EOT >> $PROXYSERVERCONF 16 17 [filter:swift3] 18 use = egg:swift3#swift3 19 s3_acl = yes 20 dns_compliant_bucket_names = yes 21 check_bucket_owner = yes 22 allow_multipart_uploads = yes 23 force_swift_request_proxy_log = yes 24 25 EOT 26 27 echo "Swift was configured successfully for swift3, but NOT ENABLED YET. In order to enable it, run:" 28 echo " enable_swift3"