service/backup: fix exit code 1 as warning

This commit is contained in:
Felix Buehler 2023-09-11 20:00:32 +02:00
parent f19c292a7e
commit 3baf050e02

View file

@ -126,7 +126,7 @@ in
compression = "auto,zstd";
postHook = ''
if [[ $exitStatus != 0 ]]; then
if (( $exitStatus > 1 )); then
'' + lib.optionalString cfg.OnFailureNotification ''
# iterate over all logged in users
for user in $(users); do