Allow custom email key for overnight scripts
This commit is contained in:
parent
5a4e2701df
commit
f97401009e
3 changed files with 13 additions and 5 deletions
|
@ -72,7 +72,8 @@ def install_luigi(c, envroot, luigi='luigi', user='rattail', db_connection=None)
|
|||
context={'appdir': appdir})
|
||||
|
||||
|
||||
def install_overnight_script(c, envroot, user='rattail', automation='All'):
|
||||
def install_overnight_script(c, envroot, user='rattail', automation='All',
|
||||
email_key=None):
|
||||
"""
|
||||
Install an overnight automation script
|
||||
"""
|
||||
|
@ -93,7 +94,8 @@ def install_overnight_script(c, envroot, user='rattail', automation='All'):
|
|||
'{}/{}'.format(appdir, filename),
|
||||
use_sudo=True, owner=user, mode='0755',
|
||||
context={'envroot': envroot,
|
||||
'automation': automation})
|
||||
'automation': automation,
|
||||
'email_key': email_key})
|
||||
|
||||
# restart-overnight-*.sh
|
||||
filename = 'restart-overnight-{}.sh'.format(automation.lower())
|
||||
|
@ -102,7 +104,8 @@ def install_overnight_script(c, envroot, user='rattail', automation='All'):
|
|||
use_sudo=True, owner=user, mode='0755',
|
||||
context={'envroot': envroot,
|
||||
'appdir': appdir,
|
||||
'automation': automation})
|
||||
'automation': automation,
|
||||
'email_key': email_key})
|
||||
|
||||
|
||||
def register_with_supervisor(c, envroot, user='rattail', autostart=False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue