Skip to content

Commit 8faf3fd

Browse files
author
mac@lowang
committed
fix error if no cron job in first deployment
1 parent 83e2b74 commit 8faf3fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playbooks/roles/cronjob/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
- name: backup old crontab
2-
shell: crontab -l > ~/backup.cron
2+
shell: crontab -l > ~/backup.cron 2> /dev/null || true
33

44
- name: copy image-clean script
55
copy:

0 commit comments

Comments
 (0)