Require $WELLKNOWN only when using http-01.

This commit is contained in:
Jan Tore Morken
2016-01-09 18:42:50 +01:00
parent ec9d3cd1cd
commit d9de894cad

View File

@@ -127,7 +127,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