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

View File

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