2010-11-13 23:59:23 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
S3FS=../src/s3fs
|
|
|
|
|
2015-02-24 13:17:59 +00:00
|
|
|
S3FS_CREDENTIALS_FILE="passwd-s3fs"
|
2010-11-13 23:59:23 +00:00
|
|
|
|
2015-02-24 13:17:59 +00:00
|
|
|
TEST_BUCKET_1="s3fs-integration-test"
|
2015-01-12 22:46:24 +00:00
|
|
|
TEST_BUCKET_MOUNT_POINT_1=${TEST_BUCKET_1}
|
2010-11-13 23:59:23 +00:00
|
|
|
|
|
|
|
if [ ! -f "$S3FS_CREDENTIALS_FILE" ]
|
|
|
|
then
|
|
|
|
echo "Missing credentials file: $S3FS_CREDENTIALS_FILE"
|
|
|
|
exit 1
|
|
|
|
fi
|
2015-03-02 22:14:40 +00:00
|
|
|
chmod 600 "$S3FS_CREDENTIALS_FILE"
|
2015-02-24 13:17:59 +00:00
|
|
|
|
2015-03-09 10:58:38 +00:00
|
|
|
S3PROXY_VERSION="1.4.0"
|
2015-03-29 21:28:13 +00:00
|
|
|
S3PROXY_BINARY="s3proxy-${S3PROXY_VERSION}"
|
2015-02-24 13:17:59 +00:00
|
|
|
if [ ! -e "${S3PROXY_BINARY}" ]; then
|
2015-03-29 21:28:13 +00:00
|
|
|
wget "https://github.com/andrewgaul/s3proxy/releases/download/s3proxy-${S3PROXY_VERSION}/s3proxy" \
|
2015-08-20 18:38:27 +00:00
|
|
|
--quiet -O "${S3PROXY_BINARY}"
|
2015-03-29 21:28:13 +00:00
|
|
|
chmod +x "${S3PROXY_BINARY}"
|
2015-02-24 13:17:59 +00:00
|
|
|
fi
|