Check letsencrypt directory
This commit is contained in:
parent
9bb7352de7
commit
680312859f
|
@ -199,7 +199,11 @@ function cert_exists {
|
||||||
if [ -f /etc/ssl/certs/${1}.${cert_type} ]; then
|
if [ -f /etc/ssl/certs/${1}.${cert_type} ]; then
|
||||||
echo "1"
|
echo "1"
|
||||||
else
|
else
|
||||||
echo "0"
|
if [ -f /etc/letsencrypt/live/${1}/fullchain.${cert_type} ]; then
|
||||||
|
echo "1"
|
||||||
|
else
|
||||||
|
echo "0"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue