From 81348902356e416aecc38999bddf2077757e1ffb Mon Sep 17 00:00:00 2001 From: allan Date: Tue, 25 Mar 2025 12:30:08 +0100 Subject: [PATCH] logic changes and cron changes --- README.md | 2 +- configure-updates | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a761b3a..a92ca92 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Ubuntu 22.04 or higher server. > Update security packages\ > Remove unused depencies same as apt autoremove\ > Reboot if needed even with users logged on\ -> Create a crontab entry to run updates every Sunday at 04:00 +> Create a crontab entry to run updates every Saturday at 04:00 ### Download the script ``` diff --git a/configure-updates b/configure-updates index f55c4aa..599f976 100755 --- a/configure-updates +++ b/configure-updates @@ -57,7 +57,7 @@ sed -i '/${distro_id}:${distro_codename}-updates/ s/^\/\///' /etc/apt/apt.conf.d # || # Optional: Uncomment the next 2 lines for removal of unused packages this equals apt autoremove -# Optionnal: Comment out line 1 and 2 for reboot if needed and line 3 to rebbot with user logged in with a #. +# Optionnal: Comment out line 1 and 2 for reboot if needed and line 3 to rebbot with user logged in. # || # \/ sed -i '\/\/Unattended-Upgrade::Automatic-Reboot "false"/ s/^\/\///' /etc/apt/apt.conf.d/50unattended-upgrades @@ -69,7 +69,7 @@ sed -i '\/\/Unattended-Upgrade::Automatic-Reboot-WithUsers/ s/^\/\///' /etc/apt/ # # Create cronjob running every sunday at 04:00 # -cronjob01="0 4 * * 7 root /usr/bin/apt update && /usr/bin/unattended-upgrade -v >/dev/null 2>&1" +cronjob01="0 4 * * 6 root /usr/bin/apt update && /usr/bin/unattended-upgrade -v >/dev/null 2>&1" echo "$cronjob01" > /etc/cron.d/updatesystem # # Restart unatended upgrades and cron.