mirror of http://138.197.108.81/gattes/matrix.git
Improving killall
This commit is contained in:
parent
6faa19863b
commit
f6292ba4c8
22
killall.sh
22
killall.sh
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue