add variable TUNASYNC_AWS_OPTIONS

This commit is contained in:
Yuxiang Zhang 2019-03-28 22:52:45 +08:00 committed by GitHub
parent b8721a7020
commit 67caef3af9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
s3.sh
View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
[ ! -d "${TUNASYNC_WORKING_DIR}" ] && mkdir -p "${TUNASYNC_WORKING_DIR}" [ ! -d "${TUNASYNC_WORKING_DIR}" ] && mkdir -p "${TUNASYNC_WORKING_DIR}"
aws --delete --no-sign-request --endpoint-url="${TUNASYNC_S3_ENDPOINT}" s3 sync "${TUNASYNC_UPSTREAM_URL}" "${TUNASYNC_WORKING_DIR}" aws ${TUNASYNC_AWS_OPTIONS} --delete --no-sign-request --endpoint-url="${TUNASYNC_S3_ENDPOINT}" s3 sync "${TUNASYNC_UPSTREAM_URL}" "${TUNASYNC_WORKING_DIR}"