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
036e9d10
Commit
036e9d10
authored
Apr 16, 2016
by
neil
Browse files
fix compatible for sh
parent
6ed1c718
Changes
2
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
036e9d10
...
@@ -1982,7 +1982,7 @@ _process() {
...
@@ -1982,7 +1982,7 @@ _process() {
_accountemail
=
""
_accountemail
=
""
_accountkey
=
""
_accountkey
=
""
_certhome
=
""
_certhome
=
""
while
((
${#}
))
;
do
while
[[
${#}
-gt
0
]]
;
do
case
"
${
1
}
"
in
case
"
${
1
}
"
in
--help
|
-h
)
--help
|
-h
)
...
@@ -2247,7 +2247,7 @@ fi
...
@@ -2247,7 +2247,7 @@ fi
if
[[
-z
"
$1
"
]]
;
then
if
[[
-z
"
$1
"
]]
;
then
showhelp
showhelp
else
else
if
[[
"
$1
"
==
"-"
*
]]
;
then
if
echo
"
$1
"
|
grep
"
^
-"
>
/dev/null 2>&1
;
then
_process
"
$@
"
_process
"
$@
"
else
else
"
$@
"
"
$@
"
...
...
dnsapi/dns-cf.sh
View file @
036e9d10
#!/
bin/ba
sh
#!/
usr/bin/env
sh
#
#
...
@@ -12,7 +12,7 @@ CF_Api="https://api.cloudflare.com/client/v4/"
...
@@ -12,7 +12,7 @@ CF_Api="https://api.cloudflare.com/client/v4/"
######## Public functions #####################
######## Public functions #####################
#Usage: add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
#Usage: add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
dns-cf-add
()
{
dns-cf-add
(){
fulldomain
=
$1
fulldomain
=
$1
txtvalue
=
$2
txtvalue
=
$2
...
...
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