bundlewrap/bundles/cron/items.py

13 lines
234 B
Python
Raw Normal View History

2020-06-01 11:54:28 +02:00
files = {}
directories = {
'/etc/cron.d': {
'purge': True,
},
}
2020-06-01 11:54:28 +02:00
for crontab, content in node.metadata.get('cron', {}).items():
files['/etc/cron.d/{}'.format(crontab)] = {
'content': content + "\n",
}