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