From: Lukas Schauer Date: Wed, 16 Dec 2015 12:03:48 +0000 (+0100) Subject: do not create WELLKNOWN directory, output error message if directory is missing X-Git-Tag: v0.1.0~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a29d1853efcfda2e3880f8a5a56931701a1ae07;p=thirdparty%2Fdehydrated.git do not create WELLKNOWN directory, output error message if directory is missing --- diff --git a/letsencrypt.sh b/letsencrypt.sh index bab8c83..34ad3af 100755 --- a/letsencrypt.sh +++ b/letsencrypt.sh @@ -155,7 +155,8 @@ init_system() { fi if [[ ! -e "${WELLKNOWN}" ]]; then - mkdir -p "${WELLKNOWN}" + echo " + ERROR: WELLKNOWN directory doesn't exist, please create ${WELLKNOWN} and set appropriate permissions." >&2 + exit 1 fi }