From: Jan Tore Morken Date: Sat, 9 Jan 2016 17:42:50 +0000 (+0100) Subject: Require $WELLKNOWN only when using http-01. X-Git-Tag: v0.1.0~54^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9de894cad7e4fc4cd7e8423daf8d53f3d195c3b;p=thirdparty%2Fdehydrated.git Require $WELLKNOWN only when using http-01. --- diff --git a/letsencrypt.sh b/letsencrypt.sh index af0597f..cf98d0d 100755 --- a/letsencrypt.sh +++ b/letsencrypt.sh @@ -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