Forward environment to cron via crontab file

This commit is contained in:
stratholme 2020-08-14 23:48:12 +02:00
parent 58fe0314a9
commit ef94550b64
4 changed files with 20 additions and 7 deletions
files

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# vim: sw=2:ts=2:noet
# -*- coding: utf-8 -*-
#
#### Assemble the Undead #####
@ -55,8 +56,8 @@ smtp_from = os.getenv('SMTP_FROM')
smtp_user = os.getenv('SMTP_USER')
smtp_password = os.getenv('SMTP_PASSWORD')
mail_subject = os.getenv('MAIL_SUBJECT')
mail_header = os.getenv('MAIL_HEADER')
mail_footer = os.getenv('MAIL_FOOTER')
mail_header = os.getenv('MAIL_HEADER').replace("\\n","\n")
mail_footer = os.getenv('MAIL_FOOTER').replace("\\n","\n")
def main(args):