Auto apt update; apt upgrade -y.
|
|
2 hete | |
|---|---|---|
| .gitignore | 2 hete | |
| README.md | 2 hete | |
| aptgrade.go | 2 hete | |
| go.mod | 2 hete | |
| install.sh | 2 hete |
sudo apt update
sudo apt upgrade -y
Now all in one command, ready to be SUID.
First, update install.sh, unless your username just happens to also be thor.
go build
sudo ./install.sh
OK! You now have an aptgrade binary that runs as root.
It calls the above commands.