From 54f5cca6a5bd30454aa2f70903ca5533319eaa81 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 6 Mar 2022 16:07:07 +0100 Subject: tinc: allow initialization to fail fast --- krebs/3modules/tinc.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'krebs') 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 ; "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} \ -- cgit v1.2.3