From d5b63b22c3f7b932808fd9d6a45f005e50d8f16d Mon Sep 17 00:00:00 2001 From: WickedYoda <68271168+wickedyoda@users.noreply.github.com> Date: Wed, 6 Sep 2023 14:18:01 -0500 Subject: [PATCH] Mail to line was missing --- ubuntu-debian-based/setup_cron_job_updates.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ubuntu-debian-based/setup_cron_job_updates.sh b/ubuntu-debian-based/setup_cron_job_updates.sh index 2148c05..f72b045 100644 --- a/ubuntu-debian-based/setup_cron_job_updates.sh +++ b/ubuntu-debian-based/setup_cron_job_updates.sh @@ -20,7 +20,8 @@ sudo systemctl stop cron # 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' | sudo tee /etc/cron.d/auto_updates # Added new line to test. -echo '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' | sudo tee -a /etc/crontab +echo '"MAILTO="alerts@tyates.one" +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' | sudo tee -a /etc/crontab # Restart the cron service to apply the new cron job