From c1c522e366d58bd64172493bd5b52d334c0e9172 Mon Sep 17 00:00:00 2001 From: WickedYoda <68271168+wickedyoda@users.noreply.github.com> Date: Tue, 28 Feb 2023 16:28:58 -0600 Subject: [PATCH] Edited Cronjob --- setup_cron_job_updates.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup_cron_job_updates.sh b/setup_cron_job_updates.sh index 46786d4..4396b41 100644 --- a/setup_cron_job_updates.sh +++ b/setup_cron_job_updates.sh @@ -5,6 +5,6 @@ sudo systemctl enable cron sudo systemctl stop cron echo "MAILTO="alerts@tyates.one" -0 */6 * * * root apt-get update && apt-get -y -d full-upgrade && apt-get autoremove -y" >> /etc/crontab +"0 */6 * * * root apt-get update && apt-get -y -d full-upgrade && apt-get autoremove -y && sudo apt-get clean -y && sudo apt-get purge -y" >> /etc/crontab -sudo systemctl start cron +sudo systemctl start cron \ No newline at end of file