add uninstall script

This commit is contained in:
ray 2020-02-17 18:33:24 +00:00
parent 58c2ac077b
commit dfa9bb1106
1 changed files with 21 additions and 0 deletions

21
uninstall.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/sh
_user_id=$(id -u)
if [ "$_user_id" -eq 0 ] ; then
echo "pacman-update-count.sh: error - must be run as normal user, not root"
exit 1
fi
sudo systemctl disable pacman-update-count.timer
sudo systemctl stop pacman-update-count.timer
sudo rm /etc/systemd/system/pacman-update-count.*
sudo systemctl daemon-reload
systemctl --user disable update-notifier.timer
systemctl --user stop update-notifier.timer
rm ~/.config/systemd/user/update-notifier.*
systemctl --user daemon-reload
sudo rm /usr/local/bin/notify-updates
sudo rm /usr/local/bin/pacman-update-count