support new tinc user

This commit is contained in:
Jörg Thalheim 2024-02-16 12:22:06 +01:00
parent 00afd8bdb8
commit 00af6f8e74

View File

@ -71,7 +71,9 @@ in {
install-keys = pkgs.writeShellScript "install-keys" '' install-keys = pkgs.writeShellScript "install-keys" ''
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
chown -R tinc.${netname} /etc/tinc/${netname}/hosts # FIXME: drop this once everyone has the new tinc user
chown -R tinc-${netname} /etc/tinc/${netname}/hosts ||
chown -R tinc.${netname} /etc/tinc/${netname}/hosts
chmod -R u+w /etc/tinc/${netname}/hosts chmod -R u+w /etc/tinc/${netname}/hosts
''; '';
in { in {