Update setup_cronjob.py

This commit is contained in:
WickedYoda committed 2024-05-30 15:32:16 -05:00
1 parent 708af6a06b
commit a61a63e48e
1 file changed
+1 -1
+1 -1
View File
@@ -31,7 +31,7 @@ subprocess.run(["sudo", "systemctl", "stop", "cron"])
# Define the cron job command
cron_job_command = (
'MAILTO="alerts@tyates.one"\n'
'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 */6 * * * root /home/traver/public-setupfiles/updates_scripts/updates.sh'
)
# Write the cron job to a file