Browse Source

Make the script silent when successful

and avoid to display the error twice on failure.
pull/752/head
atisne 4 years ago
parent
commit
7da77d5e43
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      dns_scripts/dns_add_acmedns

+ 1
- 1
dns_scripts/dns_add_acmedns View File

@ -54,9 +54,9 @@ resp=$(curl --silent \
-X POST "${API}" \
--data "$(generate_post_data)")
echo $resp
# If adding record failed (returned json includes "error" then print error message
if [[ "$resp" = *"\"error\""* ]]; then
echo "Error: DNS challenge not added: unknown error - ${resp}"
exit 1
fi
exit 0

Loading…
Cancel
Save