github.com/swiftstack/ProxyFS@v0.0.0-20210203235616-4017c267d62f/cookbooks/proxyfs/files/default/usr/bin/detect_s3 (about) 1 #!/bin/bash 2 3 # Copyright (c) 2015-2021, NVIDIA CORPORATION. 4 # SPDX-License-Identifier: Apache-2.0 5 6 #set -e 7 #set -x 8 9 PROXYSERVERCONF=/etc/swift/proxy-server.conf 10 11 grep "s3api tempauth" $PROXYSERVERCONF > /dev/null 2>&1 12 if [ $? -eq 0 ]; then 13 echo "s3api" 14 exit 0 15 fi 16 17 grep "swift3 tempauth" $PROXYSERVERCONF > /dev/null 2>&1 18 if [ $? -eq 0 ]; then 19 echo "swift3" 20 exit 0 21 fi 22 23 exit 1