From 51c4aa4500132612c5e39d8f33bbc60f4e32e3a7 Mon Sep 17 00:00:00 2001 From: Shengqi Chen Date: Mon, 14 Apr 2025 17:20:24 +0800 Subject: [PATCH] s3.sh: set AWS_EC2_METADATA_DISABLED=true (fix #183) Signed-off-by: Shengqi Chen --- s3.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/s3.sh b/s3.sh index 363c325..93cf0fe 100755 --- a/s3.sh +++ b/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}"