mirror of
https://github.com/roles-ansible/ansible_role_restic/
synced 2026-11-08 09:11:09 +01:00
Merge pull request #185 from nono-lqdn/main
Make the backup script exit with the backup exit code
This commit is contained in:
commit
6cd3ebc7f3
1 changed files with 4 additions and 4 deletions
|
|
@ -339,9 +339,9 @@ else
|
|||
{% endif %}
|
||||
fi
|
||||
|
||||
{#
|
||||
post_backup_cmd was previously named past_backup_cmd,
|
||||
to not break configs still using that spelling
|
||||
{#
|
||||
post_backup_cmd was previously named past_backup_cmd,
|
||||
to not break configs still using that spelling
|
||||
we make sure both new and old spelling works
|
||||
#}
|
||||
{% if item.past_backup_cmd is defined %}
|
||||
|
|
@ -366,4 +366,4 @@ fi
|
|||
{% endif %}
|
||||
|
||||
rm -f $pid # remove pid file just before exiting
|
||||
exit
|
||||
exit $BACKUP_EXIT_CODE
|
||||
|
|
|
|||
Loading…
Reference in a new issue