Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

uninstall.sh 708 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env sh
  2. if dpkg -l log2ram 2> /dev/null; then
  3. echo "Please run : apt remove log2ram"
  4. exit 1
  5. fi
  6. if [ "$(id -u)" -eq 0 ]
  7. then
  8. echo "Not apt installed. Remove will continue with this script..."
  9. systemctl stop log2ram.service log2ram-daily.timer
  10. systemctl disable log2ram.service log2ram-daily.timer
  11. rm -rf /etc/systemd/system/log2ram*
  12. rm /usr/local/bin/log2ram
  13. rm /etc/log2ram.conf
  14. rm -f /etc/logrotate.d/log2ram
  15. if [ -d /var/hdd.log ]; then
  16. rm -r /var/hdd.log
  17. fi
  18. echo "Log2Ram is uninstalled, removing the uninstaller in progress"
  19. rm /usr/local/bin/uninstall-log2ram.sh
  20. echo "##### Reboot isn't needed #####"
  21. else
  22. echo "You need to be ROOT (sudo can be used)"
  23. fi