Unverified Commit 477c3c6d authored by Emily's avatar Emily Committed by GitHub
Browse files

Merge pull request #307962 from jpds/restic-snapshot-list-only-latest

nixos/restic: Use cat config in pre-start repo initialization check
parents 66264352 046691a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -355,7 +355,7 @@ in
                ${pkgs.writeScript "backupPrepareCommand" backup.backupPrepareCommand}
              ''}
              ${optionalString (backup.initialize) ''
                ${resticCmd} snapshots || ${resticCmd} init
                ${resticCmd} cat config > /dev/null || ${resticCmd} init
              ''}
              ${optionalString (backup.paths != null && backup.paths != []) ''
                cat ${pkgs.writeText "staticPaths" (concatStringsSep "\n" backup.paths)} >> ${filesFromTmpFile}