Bash script to maintain/update a lot of Ubuntu servers / VMs in one go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Torsten Kurbad 2ed67b7ede Updated to support more ubuntu versions 1 year ago
.ubuntu-maintenance.rc Updated rc file 4 years ago Updated README 4 years ago
ubuntu-maintenance.rc.sample Initial content / updated README 4 years ago Updated to support more ubuntu versions 1 year ago

Bash-Script to remotely maintain/update a large number of Ubuntu machines in one go.


Preferably, copy to /usr/local/bin:

sudo cp /usr/local/bin/
sudo chmod 0755 /usr/local/bin/
sudo chown root:root /usr/local/bin/

Copy ubuntu-maintenance.rc.sample to your home directory and rename it to .ubuntu-maintenance.rc:

cp ubuntu-maintenance.rc.sample ~/.ubuntu-maintenance.rc

Using your favourite text editor, edit the SERVERS variable inside

Ubuntu machines you want to maintain.


In a terminal window, type

to see which of your machines need updates, what kernel versions they
are running, and whether a reboot is needed or not.

Type -g

to start the maintenance process. You will be asked to confirm each
maintenance step for all your machines.

Add ```-y``` to the command line to skip all the queries for
confirmation in between the maintenance process and just keep going
automatically (not recommended for beginners!), e.g. -gy

Enter -h ```

to get a short usage instruction.