From 94675edad876ba6bb87546801c22ab9b0ea8bfb7 Mon Sep 17 00:00:00 2001 From: Wizman87 <53610377+Wizman87@users.noreply.github.com> Date: Mon, 13 Feb 2023 21:20:03 -0800 Subject: [PATCH] Updated cloudflare-template.sh Migrated two lines of code for logging further below. --- cloudflare-template.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudflare-template.sh b/cloudflare-template.sh index ae8c36f..822775b 100644 --- a/cloudflare-template.sh +++ b/cloudflare-template.sh @@ -177,7 +177,6 @@ update_v6=$(curl -s -X PATCH "https://api.cloudflare.com/client/v4/zones/$zone_i ######################################################### case "$update_ipv4" in *"\"success\":false"*) - echo -e "DDNS Updater: $ipv4 $record_name_A DDNS failed for $record_identifier_A ($ipv4). Dumping results:\n$update_ipv4" | logger -s if [[ $slack_uri != "" ]]; then curl -L -X POST $slack_uri \ --data-raw '{ @@ -191,6 +190,7 @@ case "$update_ipv4" in "content" : "'"$website_name"' DDNS Updater: Failed for '$record_name_A': '$record_identifier_A' ('$ipv4')." }' $discord_uri fi + echo -e "DDNS Updater: $ipv4 $record_name_A DDNS failed for $record_identifier_A ($ipv4). Dumping results:\n$update_ipv4" | logger -s update_ipv4_valid="1" ;; *) @@ -217,7 +217,6 @@ esac ######################################################### case "$update_ipv6" in *"\"success\":false"*) - echo -e "DDNS Updater: $ipv6 $record_name_AAAA DDNS failed for $record_identifier_AAAA ($ipv6). Dumping results:\n$update_ipv6" | logger -s if [[ $slack_uri != "" ]]; then curl -L -X POST $slack_uri \ --data-raw '{ @@ -231,6 +230,7 @@ case "$update_ipv6" in "content" : "'"$website_name"' DDNS Updater: Failed for '$record_name_AAAA': '$record_identifier_AAAA' ('$ipv6')." }' $discord_uri fi + echo -e "DDNS Updater: $ipv6 $record_name_AAAA DDNS failed for $record_identifier_AAAA ($ipv6). Dumping results:\n$update_ipv6" | logger -s update_ipv6_valid="1" ;; *)