]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
do not create WELLKNOWN directory, output error message if directory is missing
authorLukas Schauer <lukas@schauer.so>
Wed, 16 Dec 2015 12:03:48 +0000 (13:03 +0100)
committerLukas Schauer <lukas@schauer.so>
Wed, 16 Dec 2015 12:03:48 +0000 (13:03 +0100)
letsencrypt.sh

index bab8c836563051f298c15973dee964d3693f33da..34ad3afc84ebe3dd700f66ebb0dba84dc90c5177 100755 (executable)
@@ -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
 }