fix renewAll bug

$CERT_HOME is required by renewAll, but wasn't initialized.
This commit is contained in:
Richard van Dijk 2016-04-17 23:44:01 +02:00 committed by neil
parent cbd13a123f
commit 2d39b3df88

10
acme.sh
View File

@ -762,17 +762,17 @@ _initpath() {
ACCOUNT_KEY_PATH="$_DEFAULT_ACCOUNT_KEY_PATH"
fi
_DEFAULT_CERT_HOME="$LE_WORKING_DIR"
if [ -z "$CERT_HOME" ] ; then
CERT_HOME="$_DEFAULT_CERT_HOME"
fi
domain="$1"
if [ -z "$domain" ] ; then
return 0
fi
_DEFAULT_CERT_HOME="$LE_WORKING_DIR"
if [ -z "$CERT_HOME" ] ; then
CERT_HOME="$_DEFAULT_CERT_HOME"
fi
domainhome="$CERT_HOME/$domain"
mkdir -p "$domainhome"