bundlewrap/bundles/letsencrypt/metadata.py

9 lines
342 B
Python
Raw Normal View History

2020-06-01 09:54:28 +00:00
@metadata_processor
def crontab(metadata):
return {
'cron': {
'letsencrypt_renew': '20 4 * * * root /usr/bin/dehydrated --cron --accept-terms --challenge http-01 > /dev/null',
2020-06-01 09:54:28 +00:00
'letsencrypt_cleanup': '42 23 * * 0 root /usr/bin/dehydrated --cleanup > /dev/null',
},
}, DEFAULTS, DONE