]> git.street.me.uk Git - andy/dehydrated.git/commitdiff
Merge pull request #82 from jantore/wellknown-http-only
authorLukas Schauer <lukas2511@users.noreply.github.com>
Fri, 15 Jan 2016 22:29:14 +0000 (23:29 +0100)
committerLukas Schauer <lukas2511@users.noreply.github.com>
Fri, 15 Jan 2016 22:29:14 +0000 (23:29 +0100)
Require $WELLKNOWN only when using http-01.

letsencrypt.sh

index 029ed745c60ffe18b09254a96dfe780932b8bfef..7a88d48dc0fc0b4fb8baab950803756efc9d9fde 100755 (executable)
@@ -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