3 ms·
I built a small (borderline trivial) script that I put at ~/bin/update on my regular user account on every server. Its purpose is to do whatever I’ve decided is
by sokoloff 5y ago
I built a small (borderline trivial) script that I put at ~/bin/update on my regular user account on every server. Its purpose is to do whatever I’ve decided is most appropriate to keep that server up-to-date.
For most Debian-based servers, it’s approximately:
sudo apt update
sudo apt upgrade
uname -a
prompt me to hit y if I want to reboot that server now. (This is what uname is for: to orient me to where that window is connected to prevent downing a server I don’t want to.)
This pattern means I can customize it for any given server without having to remember what/why for each. (This context is for my home network; I don’t claim that this is a great practice for production workloads, but it’s nice and handy for my home network.)