diff options
author | Thiago Kenji Okada <thiagokokada@gmail.com> | 2022-08-09 18:39:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-09 18:39:42 +0100 |
commit | 35348fcc07374b93826ec106ccb4350bd5a66fbb (patch) | |
tree | d9b19bdef50c1d4f5aecb3eafb5d6d7983c5cb0e /nixos/modules/services | |
parent | 2f69e982ace00128c0641c368aee171cb56fb13e (diff) | |
parent | 7e8e00d656a145a8c72aae94c7d244f25e8f3594 (diff) |
Merge pull request #182831 from otavio/topic/use-postStop-for-restic
nixos/restic: use postStop for `backupCleanupCommand`
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/backup/restic.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/backup/restic.nix b/nixos/modules/services/backup/restic.nix index 56958bf949d6f..2b0dcb16344c8 100644 --- a/nixos/modules/services/backup/restic.nix +++ b/nixos/modules/services/backup/restic.nix @@ -321,7 +321,7 @@ in ''} ''; } // optionalAttrs (backup.dynamicFilesFrom != null || backup.backupCleanupCommand != null) { - postStart = '' + postStop = '' ${optionalString (backup.backupCleanupCommand != null) '' ${pkgs.writeScript "backupCleanupCommand" backup.backupCleanupCommand} ''} |