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
6787c81a
Commit
6787c81a
authored
Mar 20, 2018
by
Felipe Braz
Browse files
renamed KINGHOST_username => KINGHOST_Username
parent
72205176
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_kinghost.sh
View file @
6787c81a
...
...
@@ -8,7 +8,7 @@
# Report Bugs here: https://github.com/kinghost/acme.sh #
# #
# Values to export: #
# export KINGHOST_
u
sername="email@provider.com" #
# export KINGHOST_
U
sername="email@provider.com" #
# export KINGHOST_Password="xxxxxxxxxx" #
############################################################
...
...
@@ -20,10 +20,10 @@ dns_kinghost_add() {
fulldomain
=
$1
txtvalue
=
$2
KINGHOST_
u
sername
=
"
${
KINGHOST_
u
sername
:-
$(
_readaccountconf_mutable KINGHOST_
u
sername
)
}
"
KINGHOST_
U
sername
=
"
${
KINGHOST_
U
sername
:-
$(
_readaccountconf_mutable KINGHOST_
U
sername
)
}
"
KINGHOST_Password
=
"
${
KINGHOST_Password
:-
$(
_readaccountconf_mutable KINGHOST_Password
)
}
"
if
[
-z
"
$KINGHOST_
u
sername
"
]
||
[
-z
"
$KINGHOST_Password
"
]
;
then
KINGHOST_
u
sername
=
""
if
[
-z
"
$KINGHOST_
U
sername
"
]
||
[
-z
"
$KINGHOST_Password
"
]
;
then
KINGHOST_
U
sername
=
""
KINGHOST_Password
=
""
_err
"You don't specify KingHost api password and email yet."
_err
"Please create you key and try again."
...
...
@@ -31,7 +31,7 @@ dns_kinghost_add() {
fi
#save the credentials to the account conf file.
_saveaccountconf_mutable KINGHOST_
u
sername
"
$KINGHOST_
u
sername
"
_saveaccountconf_mutable KINGHOST_
U
sername
"
$KINGHOST_
U
sername
"
_saveaccountconf_mutable KINGHOST_Password
"
$KINGHOST_Password
"
_debug
"Getting txt records"
...
...
@@ -62,10 +62,10 @@ dns_kinghost_rm() {
txtvalue
=
$2
KINGHOST_Password
=
"
${
KINGHOST_Password
:-
$(
_readaccountconf_mutable KINGHOST_Password
)
}
"
KINGHOST_
u
sername
=
"
${
KINGHOST_
u
sername
:-
$(
_readaccountconf_mutable KINGHOST_
u
sername
)
}
"
if
[
-z
"
$KINGHOST_Password
"
]
||
[
-z
"
$KINGHOST_
u
sername
"
]
;
then
KINGHOST_
U
sername
=
"
${
KINGHOST_
U
sername
:-
$(
_readaccountconf_mutable KINGHOST_
U
sername
)
}
"
if
[
-z
"
$KINGHOST_Password
"
]
||
[
-z
"
$KINGHOST_
U
sername
"
]
;
then
KINGHOST_Password
=
""
KINGHOST_
u
sername
=
""
KINGHOST_
U
sername
=
""
_err
"You don't specify KingHost api key and email yet."
_err
"Please create you key and try again."
return
1
...
...
@@ -99,7 +99,7 @@ _kinghost_rest() {
data
=
"
$3
"
_debug
"
$uri
"
export
_H1
=
"X-Auth-Email:
$KINGHOST_
u
sername
"
export
_H1
=
"X-Auth-Email:
$KINGHOST_
U
sername
"
export
_H2
=
"X-Auth-Key:
$KINGHOST_Password
"
if
[
"
$method
"
!=
"GET"
]
;
then
...
...
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