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
+1 -1
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}
''}