From fc08f16df6781abad19f88bf7d136a2be8334fd9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 9 Nov 2016 22:48:20 +0000 Subject: [PATCH] Remove site if it exists --- src/freedombone-app-jitsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/freedombone-app-jitsi b/src/freedombone-app-jitsi index ee78abe2..c8bc891b 100755 --- a/src/freedombone-app-jitsi +++ b/src/freedombone-app-jitsi @@ -249,6 +249,9 @@ function install_jitsi { apt-get -yq install jitsi-meet jitsi-meet-prosody jitsi_nginx_site=/etc/nginx/sites-available/${JITSI_DOMAIN_NAME}.conf + if [ -f $jitsi_nginx_site ]; then + rm $jitsi_nginx_site + fi if [[ $ONION_ONLY == "no" ]]; then function_check nginx_http_redirect nginx_http_redirect $JITSI_DOMAIN_NAME