Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
585ef998
Commit
585ef998
authored
May 07, 2019
by
Maarten den Braber
Browse files
Fixed CI errors
parent
c297aff9
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_acmeproxy.sh
View file @
585ef998
...
...
@@ -11,7 +11,7 @@ dns_acmeproxy_add() {
action
=
"present"
_debug
"Calling: _acmeproxy_request() '
${
fulldomain
}
' '
${
txtvalue
}
' '
${
action
}
'"
_acmeproxy_request
$fulldomain
$txtvalue
$action
_acmeproxy_request
"
$fulldomain
"
"
$txtvalue
"
"
$action
"
}
dns_acmeproxy_rm
()
{
...
...
@@ -20,7 +20,7 @@ dns_acmeproxy_rm() {
action
=
"cleanup"
_debug
"Calling: _acmeproxy_request() '
${
fulldomain
}
' '
${
txtvalue
}
' '
${
action
}
'"
_acmeproxy_request
$fulldomain
$txtvalue
$action
_acmeproxy_request
"
$fulldomain
"
"
$txtvalue
"
"
$action
"
}
_acmeproxy_request
()
{
...
...
@@ -39,7 +39,7 @@ _acmeproxy_request() {
ACMEPROXY_PASSWORD
=
"
${
ACMEPROXY_PASSWORD
:-
$(
_readaccountconf_mutable ACMEPROXY_PASSWORD
)
}
"
## Check for the endpoint
if
[
-z
"ACMEPROXY_ENDPOINT"
]
;
then
if
[
-z
"
$
ACMEPROXY_ENDPOINT
"
]
;
then
ACMEPROXY_ENDPOINT
=
""
_err
"You didn't specify the endpoint"
_err
"Please set them via 'export ACMEPROXY_ENDPOINT=https://ip:port' and try again."
...
...
@@ -72,7 +72,7 @@ _acmeproxy_request() {
response
=
"
$(
_post
"{
\"
fqdn
\"
:
\"
$fulldomain
.
\"
,
\"
value
\"
:
\"
$txtvalue
\"
}"
"
$ACMEPROXY_ENDPOINT
/
$action
"
""
"POST"
)
"
## Let's see if we get something intelligible back from the unit
if
echo
"
$response
"
|
grep
"
\"
$txtvalue
\"
"
>
/dev/null
;
then
if
echo
"
$response
"
|
grep
"
\"
$txtvalue
\"
"
>
/dev/null
;
then
_info
"Successfully updated the txt record"
return
0
else
...
...
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