Don't create cert if one exists
This commit is contained in:
parent
2fb745704c
commit
69f2ec8735
|
@ -414,8 +414,10 @@ function install_jitsi {
|
||||||
echo ' }' >> $jitsi_nginx_site
|
echo ' }' >> $jitsi_nginx_site
|
||||||
echo '}' >> $jitsi_nginx_site
|
echo '}' >> $jitsi_nginx_site
|
||||||
|
|
||||||
|
if [ ! -f /etc/ssl/certs/${JITSI_DOMAIN_NAME}.pem ]; then
|
||||||
function_check create_site_certificate
|
function_check create_site_certificate
|
||||||
create_site_certificate ${JITSI_DOMAIN_NAME} 'yes'
|
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
|
||||||
|
|
Loading…
Reference in New Issue