diff --git a/3.New_server_deployment/4.APT_upgrade/0_setup.sh b/3.New_server_deployment/4.APT_upgrade/0_setup.sh index e7fc75a005ef78244ad0a51bce9d0fc8ede1501c..d95b8317767117e9c8100103681c72309357ebca 100755 --- a/3.New_server_deployment/4.APT_upgrade/0_setup.sh +++ b/3.New_server_deployment/4.APT_upgrade/0_setup.sh @@ -67,3 +67,6 @@ apt-get dist-upgrade -y -o Dpkg::Options::="--force-confold" # unattended-upgrades apt-get install -y unattended-upgrades + +# remove old kernels +echo 'Unattended-Upgrade::Remove-Unused-Dependencies "true";' >> /etc/apt/apt.conf.d/50unattended-upgrades