Check letsencrypt directory

This commit is contained in:
Bob Mottram 2016-10-30 19:50:02 +00:00
parent 9bb7352de7
commit 680312859f
1 changed files with 5 additions and 1 deletions

View File

@ -199,7 +199,11 @@ function cert_exists {
if [ -f /etc/ssl/certs/${1}.${cert_type} ]; then
echo "1"
else
echo "0"
if [ -f /etc/letsencrypt/live/${1}/fullchain.${cert_type} ]; then
echo "1"
else
echo "0"
fi
fi
}