Browse Source
Merge pull request #11955 from lantis1008/ddns-cloudflare
ddns-scripts: cloudflare.com-v4: Fix success check
lilik-openwrt-22.03
Rosen Penev
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
net/ddns-scripts/Makefile
-
net/ddns-scripts/files/update_cloudflare_com_v4.sh
|
|
@ -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:=17 |
|
|
|
PKG_RELEASE:=18 |
|
|
|
|
|
|
|
PKG_LICENSE:=GPL-2.0 |
|
|
|
PKG_MAINTAINER:= |
|
|
|
|
|
@ -85,7 +85,7 @@ cloudflare_transfer() { |
|
|
|
done |
|
|
|
|
|
|
|
# check for error |
|
|
|
grep -q '"success":true' $DATFILE || { |
|
|
|
grep -q '"success": \?true' $DATFILE || { |
|
|
|
write_log 4 "CloudFlare reported an error:" |
|
|
|
write_log 7 "$(cat $DATFILE)" # report error |
|
|
|
return 1 # HTTP-Fehler |
|
|
|