Merge pull request #82 from jantore/wellknown-http-only

Require $WELLKNOWN only when using http-01.
This commit is contained in:
Lukas Schauer
2016-01-15 23:29:14 +01:00

View File

@@ -129,7 +129,9 @@ init_system() {
fi
fi
[[ -d "${WELLKNOWN}" ]] || _exiterr "WELLKNOWN directory doesn't exist, please create ${WELLKNOWN} and set appropriate permissions."
if [[ "${CHALLENGETYPE}" = "http-01" && ! -d "${WELLKNOWN}" ]]; then
_exiterr "WELLKNOWN directory doesn't exist, please create ${WELLKNOWN} and set appropriate permissions."
fi
}
# Print error message and exit with error