Merge pull request #182831 from otavio/topic/use-postStop-for-restic

nixos/restic: use postStop for `backupCleanupCommand`
This commit is contained in:
Thiago Kenji Okada 2022-08-09 18:39:42 +01:00 committed by GitHub
commit 35348fcc07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -321,7 +321,7 @@ in
''}
'';
} // optionalAttrs (backup.dynamicFilesFrom != null || backup.backupCleanupCommand != null) {
postStart = ''
postStop = ''
${optionalString (backup.backupCleanupCommand != null) ''
${pkgs.writeScript "backupCleanupCommand" backup.backupCleanupCommand}
''}