mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-13 16:06:31 +00:00
0f7d77d599
Use S3Proxy pid instead of self pid, ensure correct passwd permissions, and use fusermount instead of umount so that non-root can run tests.
22 lines
529 B
Bash
22 lines
529 B
Bash
#!/bin/bash -e
|
|
|
|
S3FS=../src/s3fs
|
|
|
|
S3FS_CREDENTIALS_FILE="passwd-s3fs"
|
|
|
|
TEST_BUCKET_1="s3fs-integration-test"
|
|
TEST_BUCKET_MOUNT_POINT_1=${TEST_BUCKET_1}
|
|
|
|
if [ ! -f "$S3FS_CREDENTIALS_FILE" ]
|
|
then
|
|
echo "Missing credentials file: $S3FS_CREDENTIALS_FILE"
|
|
exit 1
|
|
fi
|
|
chmod 600 "$S3FS_CREDENTIALS_FILE"
|
|
|
|
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
|