From eebad49b59bab2cd7c532d974f5af590fc325d16 Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Tue, 5 May 2015 20:41:05 +0000 Subject: [PATCH] Fixes on deploy.sh --- orchestra/management/commands/setupcronbeat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orchestra/management/commands/setupcronbeat.py b/orchestra/management/commands/setupcronbeat.py index 9b2f8009..4b364be2 100644 --- a/orchestra/management/commands/setupcronbeat.py +++ b/orchestra/management/commands/setupcronbeat.py @@ -16,7 +16,7 @@ class Command(BaseCommand): 'orchestra_beat': run('which orchestra-beat').stdout.decode('utf8'), 'venv': os.environ.get('VIRTUAL_ENV', ''), } - content = run('crontab -l').stdout.decode('utf8') + content = run('crontab -l || true').stdout.decode('utf8') if 'orchestra-beat' not in content: if context['venv']: content += "* * * * * . %(venv)s/bin/activate && %(orchestra_beat)s %(site_dir)s/manage.py; deactivate" % context