Ensure that LE_WORKING_DIR actually exists before calling _get inside of
_installOnline. This fixes #209.
This commit is contained in:
parent
199067e8ab
commit
2d9bdb7615
12
acme.sh
12
acme.sh
@ -835,6 +835,11 @@ _initpath() {
|
||||
if [ -z "$LE_WORKING_DIR" ] ; then
|
||||
LE_WORKING_DIR=$HOME/.$PROJECT_NAME
|
||||
fi
|
||||
if ! mkdir -p "$LE_WORKING_DIR" ; then
|
||||
_err "Can not create working dir: $LE_WORKING_DIR"
|
||||
return 1
|
||||
fi
|
||||
chmod 700 "$LE_WORKING_DIR"
|
||||
|
||||
_DEFAULT_ACCOUNT_CONF_PATH="$LE_WORKING_DIR/account.conf"
|
||||
|
||||
@ -2036,13 +2041,6 @@ install() {
|
||||
|
||||
_info "Installing to $LE_WORKING_DIR"
|
||||
|
||||
if ! mkdir -p "$LE_WORKING_DIR" ; then
|
||||
_err "Can not craete working dir: $LE_WORKING_DIR"
|
||||
return 1
|
||||
fi
|
||||
|
||||
chmod 700 "$LE_WORKING_DIR"
|
||||
|
||||
cp $PROJECT_ENTRY "$LE_WORKING_DIR/" && chmod +x "$LE_WORKING_DIR/$PROJECT_ENTRY"
|
||||
|
||||
if [ "$?" != "0" ] ; then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user