Improving killall

This commit is contained in:
Miguel Gagliardo 2024-04-25 08:11:56 +01:00
parent 6faa19863b
commit f6292ba4c8
1 changed files with 17 additions and 5 deletions

View File

@ -14,14 +14,26 @@ if [ "${answer}" != "${answer#[Yy]}" ] ;then
echo "Purging containers data" echo "Purging containers data"
docker system prune -a -f docker system prune -a -f
echo "Purging directories" echo "Removing packages"
rm -rf /etc/nginx /etc/turn* /etc/default/coturn /etc/systemd/system/matrix.service /opt/matrix /tmp/matrix /tmp/homeserver.yaml
echo "Purging directories"
apt remove -y --purge pwgen nginx python3-certbot-nginx coturn* docker* apt remove -y --purge pwgen nginx python3-certbot-nginx coturn* docker*
systemctl daemon-reload systemctl daemon-reload
echo "Purging files and directories"
rm -rf \
/etc/nginx \
/etc/turn* \
/etc/default/coturn \
/etc/systemd/system/matrix.service \
/opt/matrix \
/tmp/matrix \
/tmp/homeserver.yaml \
/etc/letsencrypt \
/tmp/*.zip
echo "Uninstalling and disabling firewall rules"
ufw disable
apt remove -y --purge ufw
echo "Purging finished" echo "Purging finished"
else else
echo "KillAll aborted" echo "KillAll aborted"