Remove any straggling jitsi certs

This commit is contained in:
Bob Mottram 2017-03-18 12:58:16 +00:00
parent 8619bfa00c
commit 84d4ffb0f7
1 changed files with 10 additions and 0 deletions

View File

@ -389,6 +389,16 @@ function install_jitsi {
sed -i "s|navigator.mozGetUserMedia|navigator.mediaDevices.getUserMedia|g" /usr/share/jitsi-meet/libs/lib-jitsi-meet.min.js
if [ -f /usr/lib/ssl/certs/${JITSI_DOMAIN_NAME}.pem ]; then
rm /usr/lib/ssl/certs/${JITSI_DOMAIN_NAME}.pem
fi
if [ -f /usr/lib/ssl/private/${JITSI_DOMAIN_NAME}.key ]; then
rm /usr/lib/ssl/private/${JITSI_DOMAIN_NAME}.key
fi
if [ -f /usr/lib/ssl/certs/${JITSI_DOMAIN_NAME}.dhparam ]; then
rm /usr/lib/ssl/certs/${JITSI_DOMAIN_NAME}.dhparam
fi
function_check nginx_ensite
nginx_ensite ${JITSI_DOMAIN_NAME}.conf