This commit is contained in:
neilpang 2016-11-18 19:40:41 +08:00
parent cd79b0343a
commit 3498a5856a

17
acme.sh
View File

@ -1705,8 +1705,6 @@ _initpath() {
return 0 return 0
fi fi
mkdir -p "$CA_DIR"
domain="$1" domain="$1"
_ilength="$2" _ilength="$2"
@ -1726,13 +1724,6 @@ _initpath() {
_debug DOMAIN_PATH "$DOMAIN_PATH" _debug DOMAIN_PATH "$DOMAIN_PATH"
fi 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 if [ -z "$DOMAIN_CONF" ]; then
DOMAIN_CONF="$DOMAIN_PATH/$domain.conf" DOMAIN_CONF="$DOMAIN_PATH/$domain.conf"
fi fi
@ -3005,6 +2996,10 @@ renewAll() {
for di in "${CERT_HOME}"/*.*/; do for di in "${CERT_HOME}"/*.*/; do
_debug di "$di" _debug di "$di"
if ! [ -d "$di" ] ; then
_debug "Not directory, skip: $di"
continue
fi
d=$(basename "$di") d=$(basename "$di")
_debug d "$d" _debug d "$d"
( (
@ -3127,6 +3122,10 @@ list() {
if [ "$_raw" ]; then if [ "$_raw" ]; then
printf "%s\n" "Main_Domain${_sep}KeyLength${_sep}SAN_Domains${_sep}Created${_sep}Renew" printf "%s\n" "Main_Domain${_sep}KeyLength${_sep}SAN_Domains${_sep}Created${_sep}Renew"
for di in "${CERT_HOME}"/*.*/; do for di in "${CERT_HOME}"/*.*/; do
if ! [ -d "$di" ] ; then
_debug "Not directory, skip: $di"
continue
fi
d=$(basename "$di") d=$(basename "$di")
_debug d "$d" _debug d "$d"
( (