fix service name for service deps

This commit is contained in:
Jörg Thalheim 2020-11-01 09:37:31 +01:00
parent eb8b4d06c8
commit d85a8783c0
No known key found for this signature in database
GPG Key ID: 003F2096411B5F92
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ in {
systemd.services."tinc.${netname}-host-keys" = {
description = "Install tinc.${netname} host keys";
requiredBy = [ "tinc.${netname}" ];
before = [ "tinc.${netname}" ];
requiredBy = [ "tinc.${netname}.service" ];
before = [ "tinc.${netname}.service" ];
script = ''
rm -rf /etc/tinc/${netname}/hosts
cp -R ${../../hosts} /etc/tinc/${netname}/hosts