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
a3784854
Commit
a3784854
authored
Jul 26, 2022
by
neilpang
Browse files
fix
https://github.com/acmesh-official/acme.sh/issues/3975
parent
8b7c000f
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_ispconfig.sh
View file @
a3784854
...
...
@@ -32,6 +32,10 @@ dns_ispconfig_rm() {
#################### Private functions below ##################################
_ISPC_credentials
()
{
ISPC_User
=
"
${
ISPC_User
:-
$(
_readaccountconf_mutable ISPC_User
)
}
"
ISPC_Password
=
"
${
ISPC_Password
:-
$(
_readaccountconf_mutable ISPC_Password
)
}
"
ISPC_Api
=
"
${
ISPC_Api
:-
$(
_readaccountconf_mutable ISPC_Api
)
}
"
ISPC_Api_Insecure
=
"
${
ISPC_Api_Insecure
:-
$(
_readaccountconf_mutable ISPC_Api_Insecure
)
}
"
if
[
-z
"
${
ISPC_User
}
"
]
||
[
-z
"
${
ISPC_Password
}
"
]
||
[
-z
"
${
ISPC_Api
}
"
]
||
[
-z
"
${
ISPC_Api_Insecure
}
"
]
;
then
ISPC_User
=
""
ISPC_Password
=
""
...
...
@@ -40,10 +44,10 @@ _ISPC_credentials() {
_err
"You haven't specified the ISPConfig Login data, URL and whether you want check the ISPC SSL cert. Please try again."
return
1
else
_saveaccountconf ISPC_User
"
${
ISPC_User
}
"
_saveaccountconf ISPC_Password
"
${
ISPC_Password
}
"
_saveaccountconf ISPC_Api
"
${
ISPC_Api
}
"
_saveaccountconf ISPC_Api_Insecure
"
${
ISPC_Api_Insecure
}
"
_saveaccountconf
_mutable
ISPC_User
"
${
ISPC_User
}
"
_saveaccountconf
_mutable
ISPC_Password
"
${
ISPC_Password
}
"
_saveaccountconf
_mutable
ISPC_Api
"
${
ISPC_Api
}
"
_saveaccountconf
_mutable
ISPC_Api_Insecure
"
${
ISPC_Api_Insecure
}
"
# Set whether curl should use secure or insecure mode
export
HTTPS_INSECURE
=
"
${
ISPC_Api_Insecure
}
"
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