Skip to content

Commit 51c4aa4

Browse files
committed
s3.sh: set AWS_EC2_METADATA_DISABLED=true (fix #183)
Signed-off-by: Shengqi Chen <[email protected]>
1 parent d70a4ba commit 51c4aa4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

s3.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ else
66
ENDPOINT=""
77
fi
88

9+
# see tuna/tunasync-scripts#183
10+
export AWS_EC2_METADATA_DISABLED=true
11+
912
[[ ! -d "${TUNASYNC_WORKING_DIR}" ]] && mkdir -p "${TUNASYNC_WORKING_DIR}"
1013
mkdir /tmp/none; cd /tmp/none # enter an empty folder, so the stars in TUNASYNC_AWS_OPTIONS are not expanded
1114
exec aws --no-sign-request ${ENDPOINT} s3 sync --exact-timestamps ${TUNASYNC_AWS_OPTIONS} "${TUNASYNC_UPSTREAM_URL}" "${TUNASYNC_WORKING_DIR}"

0 commit comments

Comments
 (0)