Conditionally set LECONFIGDIR
To be able to set LECONFIGDIR in env var for tests or different setups
This commit is contained in:
@@ -29,7 +29,9 @@
|
|||||||
PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin
|
PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin
|
||||||
|
|
||||||
# PATH to inifiles / letsencrypt dir
|
# PATH to inifiles / letsencrypt dir
|
||||||
LECONFIGDIR="~/.config/letsencrypt"
|
if [ -z "${LECONFIGDIR}" ]; then
|
||||||
|
LECONFIGDIR="~/.config/letsencrypt"
|
||||||
|
fi
|
||||||
|
|
||||||
# Catch missing LECONFIGDIR
|
# Catch missing LECONFIGDIR
|
||||||
if [ ! -d "${LECONFIGDIR}" ]; then
|
if [ ! -d "${LECONFIGDIR}" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user