tinc: allow the daemon to write to files in /etc/tinc/${network}/hosts

Follow up https://github.com/NixOS/nixpkgs/pull/27756: tinc daemon may also create new files in ```/etc/tinc/$network/hosts```
This commit is contained in:
volth 2017-08-09 22:07:01 +00:00 committed by Robin Gloster
parent e5f0c4f840
commit 7e5332c868

View file

@ -172,6 +172,7 @@ in
};
preStart = ''
mkdir -p /etc/tinc/${network}/hosts
chown tinc.${network} /etc/tinc/${network}/hosts
# Determine how we should generate our keys
if type tinc >/dev/null 2>&1; then