rx300: move cron job to systemd timers
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit

This commit is contained in:
Franzi 2022-02-06 13:41:09 +01:00
parent 46e6b0f704
commit 1b3cd8dd10
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -94,11 +94,6 @@ nodes['rx300'] = {
'/home/kunsi/.weechat',
},
},
'cron': {
'jobs': {
'cleanup-paste.franzi.business': '0 0 * * * kunsi /usr/bin/find /var/www/paste.franzi.business/ -maxdepth 1 -type d -mtime +60 -exec rm -r {} \;',
},
},
'check-mail-received': {
't-online': {
'email': 'franzi.kunsmann@t-online.de',
@ -502,6 +497,15 @@ nodes['rx300'] = {
},
},
},
'systemd-timers': {
'timers': {
'cleanup-paste.franzi.business': {
'command': '/usr/bin/find /var/www/paste.franzi.business/ -maxdepth 1 -type d -mtime +60 -exec rm -r {} \;',
'user': 'kunsi',
'when': 'daily',
},
},
},
'travelynx': {
'version': '1.21.4',
'mail_from': 'travelynx@franzi.business',