IS_EVOACME_LIVELINKS: Only executed if evoacme installed

This commit is contained in:
Benoît S. 2018-05-28 11:49:57 +02:00
parent a6b54d99e9
commit 9c5f8653fd

View file

@ -769,6 +769,7 @@ if [ -e /etc/debian_version ]; then
fi
if [ "$IS_EVOACME_LIVELINKS" = 1 ]; then
if [ -x "$(which evoacme)" ]; then
for live in /etc/letsencrypt/*/live; do
actualLink=$(ls -lhad $live | tr -s ' ' | cut -d' ' -f 11)
actualCertDate=$(cut -d'/' -f5 <<< $actualLink)
@ -782,6 +783,7 @@ if [ -e /etc/debian_version ]; then
fi
done
fi
fi
fi