Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
6b7db229
Commit
6b7db229
authored
Mar 24, 2021
by
wout
Browse files
Catch the situation when the TXT record is updated with the same value
parent
8adb8a69
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_constellix.sh
View file @
6b7db229
...
@@ -53,6 +53,9 @@ dns_constellix_add() {
...
@@ -53,6 +53,9 @@ dns_constellix_add() {
if
printf
--
"%s"
"
$response
"
|
grep
"{
\"
success
\"
:
\"
Record.*updated successfully
\"
}"
>
/dev/null
;
then
if
printf
--
"%s"
"
$response
"
|
grep
"{
\"
success
\"
:
\"
Record.*updated successfully
\"
}"
>
/dev/null
;
then
_info
"Updated"
_info
"Updated"
return
0
return
0
elif
printf
--
"%s"
"
$response
"
|
grep
"{
\"
errors
\"
:
\[\"
Contents are identical
\"\]
}"
>
/dev/null
;
then
_info
"Already exists, no need to update"
return
0
else
else
_err
"Error updating TXT record"
_err
"Error updating TXT record"
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment