Generate, then move.

This commit is contained in:
Ralph Bean 2017-12-12 19:55:40 +00:00
parent c35d565302
commit 907af54d73

View file

@ -52,7 +52,7 @@
- name: cron to generate cache of active component branches for pagure-sync-bugzilla
cron: name="export-branches" minute="15" user="apache"
job="/usr/local/bin/lock-wrapper export-branches 'python /usr/lib/python2.7/site-packages/pdc/manage.py exportbranches > /var/www/html/extras/active_branches.json'"
job="/usr/local/bin/lock-wrapper export-branches 'python /usr/lib/python2.7/site-packages/pdc/manage.py exportbranches > /var/www/html/extras/active_branches.json.tmp; mv /var/www/html/extras/active_branches.json.tmp /var/www/html/extras/active_branches.json'"
cron_file=export-branches
when: env == 'staging'
tags: