Compare commits
No commits in common. "dfa9bb1106a88c210d14e5821f1d2cf8681ed50e" and "d39b1c801368260bb4f624e1021d999048d5fc3c" have entirely different histories.
dfa9bb1106
...
d39b1c8013
|
@ -1,5 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
_user_id=$(id -u)
|
||||
|
||||
if [ "$_user_id" -eq 0 ] ; then
|
||||
|
@ -11,11 +12,11 @@ sudo cp ./notify-updates /usr/local/bin/
|
|||
sudo cp ./pacman-update-count /usr/local/bin/
|
||||
|
||||
sudo cp ./pacman-update-count.* /etc/systemd/system/
|
||||
sudo systemctl daemon-reload
|
||||
|
||||
mkdir -p ~/.config/systemd/user
|
||||
cp ./update-notifier.* ~/.config/systemd/user/
|
||||
systemctl --user daemon-reload
|
||||
cp ./update-notifier.* ~/.config/systemd/user
|
||||
|
||||
sudo systemctl daemon-reload
|
||||
|
||||
sudo systemctl enable pacman-update-count.timer
|
||||
sudo systemctl start pacman-update-count.timer
|
||||
|
|
21
uninstall.sh
21
uninstall.sh
|
@ -1,21 +0,0 @@
|
|||
#!/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
|
Loading…
Reference in New Issue