mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-11-16 13:51:02 +01:00
Require $WELLKNOWN only when using http-01.
This commit is contained in:
1 parent
ec9d3cd1cd
commit
d9de894cad
1 file changed
+3
-1
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user