From 5956eb90955dc701cd4b7fa0eff861e48523120a Mon Sep 17 00:00:00 2001 From: Tommy Date: Wed, 29 May 2024 16:05:07 -0700 Subject: [PATCH] Install dnf-automatic Signed-off-by: Tommy --- Fedora-Server-40.sh | 1 + RHEL-9.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/Fedora-Server-40.sh b/Fedora-Server-40.sh index c387a24..554b737 100644 --- a/Fedora-Server-40.sh +++ b/Fedora-Server-40.sh @@ -98,6 +98,7 @@ unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/m sudo sed -i 's/^metalink=.*/&\&protocol=https/g' /etc/yum.repos.d/* # Setup automatic updates +sudo dnf install -y dnf-automatic sudo sed -i 's/apply_updates = no/apply_updates = yes\nreboot = when-needed/g' /etc/dnf/automatic.conf sudo systemctl enable --now dnf-automatic.timer diff --git a/RHEL-9.sh b/RHEL-9.sh index ac05636..9612daf 100644 --- a/RHEL-9.sh +++ b/RHEL-9.sh @@ -84,6 +84,7 @@ unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/m sudo sed -i 's/^metalink=.*/&\&protocol=https/g' /etc/yum.repos.d/* # Setup automatic updates +sudo dnf install -y dnf-automatic sudo sed -i 's/apply_updates = no/apply_updates = yes\nreboot = when-needed/g' /etc/dnf/automatic.conf sudo systemctl enable --now dnf-automatic.timer