Auto apt update; apt upgrade -y.
|
|
há 3 dias atrás | |
|---|---|---|
| .gitignore | há 2 semanas atrás | |
| README.md | há 2 semanas atrás | |
| aptgrade.go | há 3 dias atrás | |
| go.mod | há 2 semanas atrás | |
| install.sh | há 4 dias atrás |
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.