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