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