Don't create cert if one exists

This commit is contained in:
Bob Mottram 2016-11-09 18:08:56 +00:00
parent 2fb745704c
commit 69f2ec8735
1 changed files with 4 additions and 2 deletions

View File

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