From f70699a2aa3f0d68cb6462d5b4a3ad845b717c07 Mon Sep 17 00:00:00 2001 From: WickedYoda <68271168+wickedyoda@users.noreply.github.com> Date: Thu, 23 Jan 2025 14:04:49 -0600 Subject: [PATCH] d d --- cron-job-setup-files/setup_cron_job_updates.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cron-job-setup-files/setup_cron_job_updates.sh b/cron-job-setup-files/setup_cron_job_updates.sh index defcde0..8fc9ca3 100644 --- a/cron-job-setup-files/setup_cron_job_updates.sh +++ b/cron-job-setup-files/setup_cron_job_updates.sh @@ -19,10 +19,10 @@ 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 && sudo apt-get clean -y && sudo apt-get purge -y' | sudo tee /etc/cron.d/auto_updates -# Added new line to test. -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' -0 */1 * * * root mount -a | sudo tee -a /etc/crontab #makes sure the nas is mounted +# Add the update and upgrade cron job to /etc/cron.d/auto_updates +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 +0 */1 * * * root mount -a' | sudo tee /etc/cron.d/auto_updates # Restart the cron service to apply the new cron job sudo systemctl start cron