mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
Update setup_cronjob.py
This commit is contained in:
1 parent
708af6a06b
commit
a61a63e48e
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user