Skip to content
Snippets Groups Projects
Commit 68031285 authored by Bob Mottram's avatar Bob Mottram
Browse files

Check letsencrypt directory

parent 9bb7352d
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment