You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
667 B

  1. #!/usr/bin/env sh
  2. if dpkg -l log2ram ; 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. service log2ram stop
  10. systemctl disable log2ram
  11. rm /etc/systemd/system/log2ram.service
  12. rm /usr/local/bin/log2ram
  13. rm /etc/log2ram.conf
  14. rm /etc/cron.daily/log2ram
  15. rm /etc/logrotate.d/log2ram
  16. if [ -d /var/hdd.log ]; then
  17. rm -r /var/hdd.log
  18. fi
  19. echo "Log2Ram is uninstalled, removing the uninstaller in progress"
  20. rm /usr/local/bin/uninstall-log2ram.sh
  21. echo "##### Reboot isn't needed #####"
  22. else
  23. echo "You need to be ROOT (sudo can be used)"
  24. fi