diff options
Diffstat (limited to 'templates/borg_backup.service.j2')
| -rw-r--r-- | templates/borg_backup.service.j2 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/borg_backup.service.j2 b/templates/borg_backup.service.j2 index 09cb23f..5bbd90f 100644 --- a/templates/borg_backup.service.j2 +++ b/templates/borg_backup.service.j2 @@ -7,7 +7,9 @@ Type=oneshot ExecStart={{ borg_backup_script_location }} User=root Group=root -SuccessExitStatus=1 +{% if borg_backup_service_successful_exit_status | length > 0 %} +SuccessExitStatus={{ borg_backup_service_successful_exit_status | join(' ') }} +{% endif %} [Install] WantedBy=multi-user.target |