From 3baf050e023a0247dadf64d65f38ec6b32ab13ce Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Mon, 11 Sep 2023 20:00:32 +0200 Subject: [PATCH] service/backup: fix exit code 1 as warning --- modules/services/backup/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/backup/default.nix b/modules/services/backup/default.nix index 954b8c2..0e0f832 100644 --- a/modules/services/backup/default.nix +++ b/modules/services/backup/default.nix @@ -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