Auto apt update; apt upgrade -y.
|
|
преди 2 седмици | |
|---|---|---|
| .gitignore | преди 2 седмици | |
| README.md | преди 2 седмици | |
| aptgrade.go | преди 2 седмици | |
| go.mod | преди 2 седмици | |
| install.sh | преди 2 седмици |
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.