Add clean /etc/hosts file

This commit is contained in:
Luis Guzmán 2021-06-28 03:39:21 -05:00
parent 096eb6a530
commit 1801e73cec
1 changed files with 4 additions and 0 deletions

View File

@ -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