Auto apt update; apt upgrade -y.
|
|
hai 4 días | |
|---|---|---|
| .gitignore | hai 2 semanas | |
| README.md | hai 2 semanas | |
| aptgrade.go | hai 4 días | |
| go.mod | hai 2 semanas | |
| install.sh | hai 4 días |
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.