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

Don't create cert if one exists

parent 2fb74570
No related branches found
No related tags found
No related merge requests found
......@@ -414,8 +414,10 @@ function install_jitsi {
echo ' }' >> $jitsi_nginx_site
echo '}' >> $jitsi_nginx_site
function_check create_site_certificate
create_site_certificate ${JITSI_DOMAIN_NAME} 'yes'
if [ ! -f /etc/ssl/certs/${JITSI_DOMAIN_NAME}.pem ]; then
function_check create_site_certificate
create_site_certificate ${JITSI_DOMAIN_NAME} 'yes'
fi
if [ -f /etc/ssl/certs/${JITSI_DOMAIN_NAME}.crt ]; then
mv /etc/ssl/certs/${JITSI_DOMAIN_NAME}.crt /etc/ssl/certs/${JITSI_DOMAIN_NAME}.pem
......
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