OS updates apply autoremove first
authorBill Erickson <berickxx@gmail.com>
Tue, 18 Oct 2016 15:23:10 +0000 (11:23 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Experiment running 'autoremove' before 'dist-upgrade' to avoid occaisonal
problems with botched grub installs leading to un-bootable servers.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/admin-scripts/os-update.sh

index 7174d66..1b86d08 100755 (executable)
@@ -3,8 +3,8 @@
 DO_REBOOT=""
 
 apt-get update;
-apt-get -y dist-upgrade;
 apt-get -y autoremove;
+apt-get -y dist-upgrade;
 
 echo ""
 echo "--"