From f4d49f44546f1338d6e45a81466c54c59235bf68 Mon Sep 17 00:00:00 2001 From: allan Date: Fri, 8 Nov 2024 12:24:49 +0100 Subject: [PATCH] tested on ubuntu 24.04 --- README.md | 6 +++--- configure-updates | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8d85b17..a761b3a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -## Unattended update script for Ubuntu 22.04 server. +## Unattended update script for Ubuntu 22.04 and 24.04 server. ### Prerequisites -Ubuntu 22.04 server. +Ubuntu 22.04 or higher server. > **IMPORTANT** > @@ -28,4 +28,4 @@ Nothing to do. More guides can be found on [\[wiki.x-files.dk\]](https://wiki.x-files.dk) ### Last tested -January 12th 2024 on Ubuntu 22.04. +November 8th 2024 on Ubuntu 24.04. diff --git a/configure-updates b/configure-updates index 27351eb..21bc612 100755 --- a/configure-updates +++ b/configure-updates @@ -35,6 +35,11 @@ apt install -y update-notifier-common config="$config1" ; configalt="$config1alt" ; chkcfg $config $configalt config="$config2" ; configalt="$config2alt" ; chkcfg $config $configalt # +# Back up configuration files. +# +cp -Rp /etc/apt/apt.conf.d/20auto-upgrades /etc/apt/apt.conf.d/20auto-upgrades.orig +cp -Rp /etc/apt/apt.conf.d/50unattended-upgrades /etc/apt/apt.conf.d/50unattended-upgrades.orig +# # Disable automatic updates. We want to be in control instead of letting the system do this randomly twice a day. # sed -i 's/1/0/g' /etc/apt/apt.conf.d/20auto-upgrades