Honor the env.machine_is_live
flag in addition to env.server_is_live
in fact, prefer it
This commit is contained in:
parent
658bc3e4d2
commit
2df0cf1b27
|
@ -1,4 +1,11 @@
|
|||
# -*- mode: conf; -*-
|
||||
|
||||
# backup everything of importance at ${pretty_time}
|
||||
% if hasattr(env, 'machine_is_live'):
|
||||
${'' if env.machine_is_live else '# '}${cron_time} * * * root /usr/local/bin/backup-everything
|
||||
## TODO: should somehow deprecate / remove this?
|
||||
% elif hasattr(env, 'server_is_live'):
|
||||
${'' if env.server_is_live else '# '}${cron_time} * * * root /usr/local/bin/backup-everything
|
||||
% else:
|
||||
# ${cron_time} * * * root /usr/local/bin/backup-everything
|
||||
% endif
|
||||
|
|
Loading…
Reference in a new issue