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
05d7ae4e
Commit
05d7ae4e
authored
Nov 18, 2016
by
neil
Committed by
GitHub
Nov 18, 2016
Browse files
Merge pull request #402 from Neilpang/dev
Dev
parents
abba00d5
44483dba
Changes
2
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
05d7ae4e
...
...
@@ -1705,8 +1705,6 @@ _initpath() {
return
0
fi
mkdir
-p
"
$CA_DIR
"
domain
=
"
$1
"
_ilength
=
"
$2
"
...
...
@@ -1726,13 +1724,6 @@ _initpath() {
_debug DOMAIN_PATH
"
$DOMAIN_PATH
"
fi
if
[
!
-d
"
$DOMAIN_PATH
"
]
;
then
if
!
mkdir
-p
"
$DOMAIN_PATH
"
;
then
_err
"Can not create domain path:
$DOMAIN_PATH
"
return
1
fi
fi
if
[
-z
"
$DOMAIN_CONF
"
]
;
then
DOMAIN_CONF
=
"
$DOMAIN_PATH
/
$domain
.conf"
fi
...
...
@@ -3005,6 +2996,10 @@ renewAll() {
for
di
in
"
${
CERT_HOME
}
"
/
*
.
*
/
;
do
_debug di
"
$di
"
if
!
[
-d
"
$di
"
]
;
then
_debug
"Not directory, skip:
$di
"
continue
fi
d
=
$(
basename
"
$di
"
)
_debug d
"
$d
"
(
...
...
@@ -3127,6 +3122,10 @@ list() {
if
[
"
$_raw
"
]
;
then
printf
"%s
\n
"
"Main_Domain
${
_sep
}
KeyLength
${
_sep
}
SAN_Domains
${
_sep
}
Created
${
_sep
}
Renew"
for
di
in
"
${
CERT_HOME
}
"
/
*
.
*
/
;
do
if
!
[
-d
"
$di
"
]
;
then
_debug
"Not directory, skip:
$di
"
continue
fi
d
=
$(
basename
"
$di
"
)
_debug d
"
$d
"
(
...
...
dnsapi/dns_cf.sh
View file @
05d7ae4e
...
...
@@ -22,6 +22,12 @@ dns_cf_add() {
return
1
fi
if
!
_contains
"
$CF_Email
"
"@"
;
then
_err
"It seems that the CF_Email=
$CF_Email
is not a valid email address."
_err
"Please check and retry."
return
1
fi
#save the api key and email to the account conf file.
_saveaccountconf CF_Key
"
$CF_Key
"
_saveaccountconf CF_Email
"
$CF_Email
"
...
...
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