Matrix server automated install
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

killall.sh 729B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. set -euo pipefail
  3. printf 'WARNING: Will remove everything now. Please confirm: (Y/N) '
  4. read answer
  5. if [ "${answer}" != "${answer#[Yy]}" ] ;then
  6. echo "Stopping services"
  7. systemctl disable --now matrix
  8. systemctl disable --now nginx
  9. systemctl disable --now coturn
  10. echo "Purging containers data"
  11. docker system prune -a -f
  12. echo "Purging directories"
  13. rm -rf /etc/nginx /etc/turn* /etc/default/coturn /etc/systemd/system/matrix.service /opt/matrix /tmp/matrix /tmp/homeserver.yaml
  14. echo "Purging directories"
  15. apt remove -y --purge pwgen nginx python3-certbot-nginx coturn* docker*
  16. systemctl daemon-reload
  17. echo "Purging finished"
  18. else
  19. echo "KillAll aborted"
  20. fi