Rename dependentService to conflictingService

This commit is contained in:
SebastianStork 2025-06-14 15:38:03 +02:00
parent 73e0441fd4
commit bf87931934
7 changed files with 15 additions and 18 deletions

View file

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