bundles/cron: use MAILTO=, rework metadata syntax
This commit is contained in:
parent
533f8075ca
commit
0d865c93d4
22 changed files with 113 additions and 65 deletions
|
@ -3,5 +3,6 @@
|
|||
|
||||
SHELL=/bin/sh
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||
MAILTO=${node.metadata.get('cron/mail_to', repo.libs.defaults.hostmaster_email)}
|
||||
|
||||
${cron}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
SHELL=/bin/sh
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||
MAILTO=${node.metadata.get('cron/mail_to', repo.libs.defaults.hostmaster_email)}
|
||||
|
||||
${min} * * * * root cd / && run-parts --report /etc/cron.hourly
|
||||
${min} 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue