]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
Require $WELLKNOWN only when using http-01. 82/head
authorJan Tore Morken <jantore@32k.org>
Sat, 9 Jan 2016 17:42:50 +0000 (18:42 +0100)
committerJan Tore Morken <jantore@32k.org>
Sat, 9 Jan 2016 17:42:50 +0000 (18:42 +0100)
letsencrypt.sh

index af0597f96556096372b88914e818038960263e3d..cf98d0d2c0078cea0925ec82ec215537c0b6a186 100755 (executable)
@@ -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