Honor the env.machine_is_live flag in addition to env.server_is_live

in fact, prefer it
This commit is contained in:
Lance Edgar 2019-09-07 19:40:10 -05:00
parent 658bc3e4d2
commit 2df0cf1b27

View file

@ -1,4 +1,11 @@
# -*- mode: conf; -*- # -*- mode: conf; -*-
# backup everything of importance at ${pretty_time} # 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 ${'' if env.server_is_live else '# '}${cron_time} * * * root /usr/local/bin/backup-everything
% else:
# ${cron_time} * * * root /usr/local/bin/backup-everything
% endif