ddns-scripts: submit one change at a time to route53
authorMartin Konrad <redacted>
Fri, 23 Nov 2018 18:45:27 +0000 (13:45 -0500)
committerMartin Konrad <redacted>
Fri, 23 Nov 2018 18:56:38 +0000 (13:56 -0500)
This prevents updates from failing if multiple instances of the
script are running in parallel. This fixes #7492.

Signed-off-by: Martin Konrad <redacted>
net/ddns-scripts/Makefile
net/ddns-scripts/files/dynamic_dns_functions.sh
net/ddns-scripts/files/update_route53_v1.sh

index aa57c4fcb9fe74e63cda4782bfb1be54b371010b..fa947aaa1bf684bfed9b3a96dd09584ceffcf278 100755 (executable)
@@ -12,7 +12,7 @@ PKG_NAME:=ddns-scripts
 PKG_VERSION:=2.7.8
 # Release == build
 # increase on changes of services files or tld_names.dat
-PKG_RELEASE:=5
+PKG_RELEASE:=6
 
 PKG_LICENSE:=GPL-2.0
 PKG_MAINTAINER:=
index 6583344808f9556eb9da3e013153dfbc97fc9898..2143d8453876e87f02ceeb91d0d527d323d04917 100755 (executable)
@@ -21,7 +21,7 @@
 . /lib/functions/network.sh
 
 # GLOBAL VARIABLES #
-VERSION="2.7.8-5"
+VERSION="2.7.8-6"
 SECTION_ID=""          # hold config's section name
 VERBOSE=0              # default mode is log to console, but easily changed with parameter
 MYPROG=$(basename $0)  # my program call name
index a7d4dfb64ae6aaafefb3bfceeca2113f96ea8e1e..6d752ba9ed3fb649d61683458a2f5476c898ed74 100644 (file)
@@ -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}" \
git clone https://git.99rst.org/PROJECT