tested on ubuntu 24.04
This commit is contained in:
parent
0365c222bf
commit
f4d49f4454
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user