restic: Fix typo in variable name

This commit is contained in:
SebastianStork 2025-11-25 13:20:26 +01:00
parent 5da785c6ba
commit 0c5d4436ad
Signed by: SebastianStork
SSH key fingerprint: SHA256:iEM011ogNMG1q8+U500adGu/9rpPuZ2KnFtbdLeqTiI

View file

@ -42,14 +42,14 @@ in
let
inherit (value) conflictingService;
inherit (value.restoreCommand) preRestore postRestore;
hasconflictingService = conflictingService != null;
hasConflictingService = conflictingService != null;
in
''
${lib.optionalString hasconflictingService "systemctl stop ${conflictingService}"}
${lib.optionalString hasConflictingService "systemctl stop ${conflictingService}"}
${preRestore}
restic-${name} restore latest --target /
${postRestore}
${lib.optionalString hasconflictingService "systemctl start ${conflictingService}"}
${lib.optionalString hasConflictingService "systemctl start ${conflictingService}"}
'';
}
);