Conditionally set LECONFIGDIR

To be able to set LECONFIGDIR in env var for tests or different setups
This commit is contained in:
2017-02-10 16:58:12 +01:00
parent 3b85863526
commit 0bc92aa2ee
+3 -1
View File
@@ -29,7 +29,9 @@
PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin
# PATH to inifiles / letsencrypt dir
LECONFIGDIR="~/.config/letsencrypt"
if [ -z "${LECONFIGDIR}" ]; then
LECONFIGDIR="~/.config/letsencrypt"
fi
# Catch missing LECONFIGDIR
if [ ! -d "${LECONFIGDIR}" ]; then