diff --git a/letsencrypt-renew.sh b/letsencrypt-renew.sh index c96d733..bcfd44e 100755 --- a/letsencrypt-renew.sh +++ b/letsencrypt-renew.sh @@ -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