2020-09-22 18:46:37 +00:00
|
|
|
#!/usr/bin/sh
|
|
|
|
|
2022-09-12 08:52:43 +00:00
|
|
|
sudo echo "Authenticated as root" || exit
|
|
|
|
|
2022-07-21 15:47:25 +00:00
|
|
|
paru -Syu --noconfirm
|
2020-09-22 18:46:37 +00:00
|
|
|
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
echo "UPDATE SUCCEDEED"
|
|
|
|
else
|
|
|
|
echo "UPDATE FAILED"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
echo "==================================================================="
|
|
|
|
|
2022-09-12 08:52:43 +00:00
|
|
|
sudo pacman -Rns --noconfirm $(pacman -Qtdq)
|
2020-09-22 18:46:37 +00:00
|
|
|
|
2021-07-13 00:05:40 +00:00
|
|
|
sudo checkservices
|
2020-09-22 18:46:37 +00:00
|
|
|
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
echo "CHECKSERVICES SUCCEDEED"
|
|
|
|
else
|
|
|
|
echo "CHECKSERVICES FAILED"
|
|
|
|
exit 1
|
|
|
|
fi
|