mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-07-04 20:21:37 +02:00
Merge pull request #82 from jantore/wellknown-http-only
Require $WELLKNOWN only when using http-01.
This commit is contained in:
+3
-1
@@ -129,7 +129,9 @@ init_system() {
|
|||||||
fi
|
fi
|
||||||
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
|
# Print error message and exit with error
|
||||||
|
|||||||
Reference in New Issue
Block a user