diff options
author | tv <tv@krebsco.de> | 2022-03-06 16:07:07 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2022-03-06 17:34:10 +0100 |
commit | 54f5cca6a5bd30454aa2f70903ca5533319eaa81 (patch) | |
tree | 2d60e976db6a2f761c18071023e57434ffe5eac9 /krebs | |
parent | 7f4aef1ffbf21ae3c199ad63a371a0498d521e19 (diff) |
tinc: allow initialization to fail fast
Diffstat (limited to 'krebs')
-rw-r--r-- | krebs/3modules/tinc.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/krebs/3modules/tinc.nix b/krebs/3modules/tinc.nix index 36ee906d8..38e310908 100644 --- a/krebs/3modules/tinc.nix +++ b/krebs/3modules/tinc.nix @@ -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} \ |