tested on ubuntu 24.04

This commit is contained in:
allan 2024-11-08 12:24:49 +01:00
parent 0365c222bf
commit f4d49f4454
2 changed files with 8 additions and 3 deletions

View File

@ -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.

View File

@ -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