From 1801e73cec7cfdf4f23deb697e2a028df02a7bf1 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Mon, 28 Jun 2021 03:39:21 -0500 Subject: [PATCH] Add clean /etc/hosts file --- tools/start-over.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/start-over.sh b/tools/start-over.sh index a6614e7..3294dd9 100644 --- a/tools/start-over.sh +++ b/tools/start-over.sh @@ -51,6 +51,7 @@ echo -e ' \n' SYNC_USER="$(ls /home|awk '/jbsync/{print}')" +DOMAIN="$(ls /etc/prosody/conf.d/ | awk -F'.cfg' '!/localhost/{print $1}' | awk '!NF || !seen[$0]++')" echo "We are about to remove and clean all the jitsi-meet platform bits and pieces... Please make sure you have backed up anything you don't want to loose." @@ -110,6 +111,9 @@ remove_residuals /opt/jitsi remove_residuals /usr/share/jicofo remove_residuals /usr/share/jitsi-* +#Clean /etc/hosts +sed -i "/$DOMAIN/d" /etc/hosts + #Purging debconf db purge_debconf jicofo purge_debconf jigasi