Commit d9de894c authored by Jan Tore Morken's avatar Jan Tore Morken

Require $WELLKNOWN only when using http-01.

parent ec9d3cd1
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment