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
86ef6e69
Commit
86ef6e69
authored
Mar 26, 2018
by
Felipe Braz
Browse files
fixes on dnsapi/dns_kinghost.sh and dnsapi/README.md
parent
e8fd373e
Changes
2
Hide whitespace changes
Inline
Side-by-side
dnsapi/README.md
View file @
86ef6e69
...
...
@@ -792,7 +792,7 @@ The `DA_Api` and `DA_Api_Insecure` will be saved in `~/.acme.sh/account.conf` an
API access must be enabled at https://painel.kinghost.com.br/painel.api.php
```
export KINGHOST_
u
sername="yourusername"
export KINGHOST_
U
sername="yourusername"
export KINGHOST_Password="yourpassword"
acme.sh --issue --dns dns_kinghost -d example.com -d *.example.com
```
...
...
dnsapi/dns_kinghost.sh
View file @
86ef6e69
...
...
@@ -31,8 +31,8 @@ dns_kinghost_add() {
fi
#save the credentials to the account conf file.
_saveaccountconf_mutable KINGHOST_Username
"
$KINGHOST_Username
"
_saveaccountconf_mutable KINGHOST_Password
"
$KINGHOST_Password
"
_saveaccountconf_mutable KINGHOST_Username
"
$KINGHOST_Username
"
_saveaccountconf_mutable KINGHOST_Password
"
$KINGHOST_Password
"
_debug
"Getting txt records"
_kinghost_rest GET
"dns"
"name=
$fulldomain
&content=
$txtvalue
"
...
...
@@ -52,7 +52,7 @@ dns_kinghost_add() {
return
1
fi
return
0
;
return
0
}
# Usage: fulldomain txtvalue
...
...
@@ -63,7 +63,7 @@ dns_kinghost_rm() {
KINGHOST_Password
=
"
${
KINGHOST_Password
:-
$(
_readaccountconf_mutable KINGHOST_Password
)
}
"
KINGHOST_Username
=
"
${
KINGHOST_Username
:-
$(
_readaccountconf_mutable KINGHOST_Username
)
}
"
if
[
-z
"
$KINGHOST_Password
"
]
||
[
-z
"
$KINGHOST_Username
"
]
;
then
if
[
-z
"
$KINGHOST_Password
"
]
||
[
-z
"
$KINGHOST_Username
"
]
;
then
KINGHOST_Password
=
""
KINGHOST_Username
=
""
_err
"You don't specify KingHost api key and email yet."
...
...
@@ -89,7 +89,7 @@ dns_kinghost_rm() {
return
1
fi
return
0
;
return
0
}
#################### Private functions below ##################################
...
...
@@ -115,4 +115,4 @@ _kinghost_rest() {
fi
_debug2 response
"
$response
"
return
0
}
\ No newline at end of file
}
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