mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-17 09:42:44 +00:00
s3.sh: set AWS_EC2_METADATA_DISABLED=true (fix #183)
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
parent
d70a4ba893
commit
51c4aa4500
3
s3.sh
3
s3.sh
@ -6,6 +6,9 @@ else
|
||||
ENDPOINT=""
|
||||
fi
|
||||
|
||||
# see tuna/tunasync-scripts#183
|
||||
export AWS_EC2_METADATA_DISABLED=true
|
||||
|
||||
[[ ! -d "${TUNASYNC_WORKING_DIR}" ]] && mkdir -p "${TUNASYNC_WORKING_DIR}"
|
||||
mkdir /tmp/none; cd /tmp/none # enter an empty folder, so the stars in TUNASYNC_AWS_OPTIONS are not expanded
|
||||
exec aws --no-sign-request ${ENDPOINT} s3 sync --exact-timestamps ${TUNASYNC_AWS_OPTIONS} "${TUNASYNC_UPSTREAM_URL}" "${TUNASYNC_WORKING_DIR}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user