github.com/swiftstack/proxyfs@v0.0.0-20201223034610-5434d919416e/cookbooks/proxyfs/files/default/usr/bin/set_up_swift3 (about)

     1  #!/bin/bash
     2  
     3  PROXYSERVERCONF=/etc/swift/proxy-server.conf
     4  grep "\[filter\:swift3\]" $PROXYSERVERCONF > /dev/null 2>&1
     5  if [ $? -eq 0 ]; then
     6      echo "Swift3 is already set up. No need to do anything. Run enable_swift3 to enable this configuration."
     7      exit 0
     8  fi
     9  
    10  set -e
    11  
    12  cat <<EOT >> $PROXYSERVERCONF
    13  
    14  [filter:swift3]
    15  use = egg:swift3#swift3
    16  s3_acl = yes
    17  dns_compliant_bucket_names = yes
    18  check_bucket_owner = yes
    19  allow_multipart_uploads = yes
    20  force_swift_request_proxy_log = yes
    21  
    22  EOT
    23  
    24  echo "Swift was configured successfully for swift3, but NOT ENABLED YET. In order to enable it, run:"
    25  echo "    enable_swift3"