support new tinc user
This commit is contained in:
parent
00afd8bdb8
commit
00af6f8e74
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user