@@ -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
}