mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-03-29 05:11:48 +02:00
Merge pull request #82 from jantore/wellknown-http-only
Require $WELLKNOWN only when using http-01.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user