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
441c26dd
Unverified
Commit
441c26dd
authored
Jan 25, 2018
by
martgras
Committed by
GitHub
Jan 25, 2018
Browse files
Update dns_azure.sh
parent
00781dd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_azure.sh
View file @
441c26dd
...
@@ -146,7 +146,7 @@ dns_azure_rm()
...
@@ -146,7 +146,7 @@ dns_azure_rm()
_debug
"
$acmeRecordURI
"
_debug
"
$acmeRecordURI
"
body
=
"{
\"
properties
\"
: {
\"
TTL
\"
: 3600,
\"
TXTRecords
\"
: [{
\"
value
\"
: [
\"
$txtvalue
\"
]}]}}"
body
=
"{
\"
properties
\"
: {
\"
TTL
\"
: 3600,
\"
TXTRecords
\"
: [{
\"
value
\"
: [
\"
$txtvalue
\"
]}]}}"
_azure_rest DELETE
"
$acmeRecordURI
"
""
"
$accesstoken
"
_azure_rest DELETE
"
$acmeRecordURI
"
""
"
$accesstoken
"
if
[
"
$_code
"
=
"200"
]
||
[
"
$code
"
=
'204'
]
;
then
if
[
"
$_code
"
=
"200"
]
||
[
"
$
_
code
"
=
'204'
]
;
then
_info
"validation record removed"
_info
"validation record removed"
else
else
_err
"error removing validation record (
$_code
)"
_err
"error removing validation record (
$_code
)"
...
@@ -208,7 +208,7 @@ _azure_getaccess_token() {
...
@@ -208,7 +208,7 @@ _azure_getaccess_token() {
_err
"error
$response
"
_err
"error
$response
"
return
1
return
1
fi
fi
printf
"
$accesstoken
"
printf
"%s"
"
$accesstoken
"
return
0
return
0
}
}
...
...
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