From 84d4ffb0f7e10818147a1657c8b2f5369794382d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 18 Mar 2017 12:58:16 +0000 Subject: [PATCH] Remove any straggling jitsi certs --- src/freedombone-app-jitsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/freedombone-app-jitsi b/src/freedombone-app-jitsi index e66823ed..1c4caa56 100755 --- a/src/freedombone-app-jitsi +++ b/src/freedombone-app-jitsi @@ -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