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