mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
ddns-scripts: submit one change at a time to route53
This prevents updates from failing if multiple instances of the script are running in parallel. This fixes #7492. Signed-off-by: Martin Konrad <info@martin-konrad.net>
This commit is contained in:
@@ -80,7 +80,7 @@ signature="$(sign "${signing_key}" "${sigmsg}")"
|
||||
|
||||
authorization="AWS4-HMAC-SHA256 Credential=${AWS_ACCESS_KEY_ID}/${credential}, SignedHeaders=${signed_headers}, Signature=${signature}"
|
||||
|
||||
ANSWER="$(curl \
|
||||
ANSWER="$(flock /tmp/$(basename -s .sh "$0").lock curl \
|
||||
-X "POST" \
|
||||
-H "Host: route53.amazonaws.com" \
|
||||
-H "X-Amz-Date: ${fulldate}" \
|
||||
|
||||
Reference in New Issue
Block a user