Add doas config stuff

This commit is contained in:
Tobias Reisinger 2021-01-31 14:42:35 +01:00
parent b44c41f339
commit 3d17d60bc9
5 changed files with 97 additions and 6 deletions

View file

@ -1,6 +1,6 @@
#!/usr/bin/sh
yay -Syu
paru -Syu
if [ $? -eq 0 ]; then
echo "UPDATE SUCCEDEED"
@ -13,7 +13,12 @@ fi
echo "==================================================================="
sudo checkservices
if [ -x "$(command -v doas)" ]
then
doas checkservices
else
sudo checkservices
fi
if [ $? -eq 0 ]; then
echo "CHECKSERVICES SUCCEDEED"