Skip to content

Commit

Permalink
fix error if no cron job in first deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
mac@lowang committed Sep 26, 2018
1 parent 83e2b74 commit 8faf3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playbooks/roles/cronjob/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- name: backup old crontab
shell: crontab -l > ~/backup.cron
shell: crontab -l > ~/backup.cron 2> /dev/null || true

- name: copy image-clean script
copy:
Expand Down

0 comments on commit 8faf3fd

Please sign in to comment.