tinc: allow initialization to fail fast

This commit is contained in:
tv 2022-03-06 16:07:07 +01:00
parent 7f4aef1ffb
commit 54f5cca6a5

View File

@ -250,6 +250,7 @@ with import <stockholm/lib>;
"rsa_key.priv:${cfg.privkey}"
];
ExecStartPre = pkgs.writers.writeDash "init-tinc-${netname}" ''
set -efu
${pkgs.coreutils}/bin/mkdir -p /etc/tinc
${pkgs.rsync}/bin/rsync -Lacv --delete \
--chown ${cfg.user.name} \