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
|
|
|
|
|
|
|
S3PROXY_VERSION="1.3.0"
|
|
|
|
S3PROXY_BINARY="s3proxy-${S3PROXY_VERSION}-jar-with-dependencies.jar"
|
|
|
|
if [ ! -e "${S3PROXY_BINARY}" ]; then
|
|
|
|
wget "http://repo1.maven.org/maven2/org/gaul/s3proxy/${S3PROXY_VERSION}/${S3PROXY_BINARY}"
|
|
|
|
fi
|