mirror of
https://codeberg.org/polyteknisk-radiogruppe/the_prg_server_configuration.git
synced 2026-06-13 18:28:55 +02:00
Fix syntax issues in DDNS
This commit is contained in:
parent
afe8d51b75
commit
4ae50e0d91
1 changed files with 7 additions and 7 deletions
|
|
@ -650,9 +650,9 @@ in {
|
||||||
###########################################
|
###########################################
|
||||||
|
|
||||||
${pkgs.util-linux}/bin/logger "DDNS Updater: Check Initiated"
|
${pkgs.util-linux}/bin/logger "DDNS Updater: Check Initiated"
|
||||||
record=$(${pkgs.curl}/bin/curl -s -X GET "https://api.cloudflare.com/client/v4/zones/''${zone_identifier}/dns_records?type=A&name=''${record_name}" \
|
record=$(${pkgs.curl}/bin/curl -s -X GET "https://api.cloudflare.com/client/v4/zones/''$zone_identifier/dns_records?type=A&name=''$record_name" \
|
||||||
-H "X-Auth-Email: ''${auth_email}" \
|
-H "X-Auth-Email: ''$auth_email" \
|
||||||
-H "''${auth_header} ''${auth_key}" \
|
-H "''$auth_header ''$auth_key" \
|
||||||
-H "Content-Type: application/json")
|
-H "Content-Type: application/json")
|
||||||
|
|
||||||
###########################################
|
###########################################
|
||||||
|
|
@ -681,11 +681,11 @@ in {
|
||||||
###########################################
|
###########################################
|
||||||
## Change the IP@Cloudflare using the API
|
## Change the IP@Cloudflare using the API
|
||||||
###########################################
|
###########################################
|
||||||
update=$(${pkgs.curl}/bin/curl -s -X PATCH "https://api.cloudflare.com/client/v4/zones/''${zone_identifier}/dns_records/''${record_identifier}" \
|
update=$(q${pkgs.curl}/bin/curl -s -X PATCH "https://api.cloudflare.com/client/v4/zones/''$zone_identifier/dns_records/''$record_identifier" \
|
||||||
-H "X-Auth-Email: ''${auth_email}" \
|
-H "X-Auth-Email: ''$auth_email" \
|
||||||
-H "''${auth_header} ''${auth_key}" \
|
-H "''$auth_header ''$auth_key" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
--data "{\"type\":\"A\",\"name\":\"''${record_name}\",\"content\":\"''${CURRENT_IP}\",\"ttl\":''${ttl},\"proxied\":''${proxy}}")
|
--data "{\"type\":\"A\",\"name\":\"''$record_name\",\"content\":\"''$CURRENT_IP\",\"ttl\":''$ttl,\"proxied\":''${proxy}}")
|
||||||
|
|
||||||
###########################################
|
###########################################
|
||||||
## Report the status (simplified payload construction to avoid nested-quote issues)
|
## Report the status (simplified payload construction to avoid nested-quote issues)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue