From 9da246abeeaae92b5cecd0526eeb40a1cccb3260 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 9 Jul 2019 18:07:30 +0200 Subject: ... --- hel.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hel.nix b/hel.nix index 6ae2d96a..01f2093e 100644 --- a/hel.nix +++ b/hel.nix @@ -145,8 +145,8 @@ systemd.services."unbound" = { preStart = '' - if [[ -d /etc/unbound ]]; then - ${pkgs.coreutils}/bin/mkdir -p /var/lib/unbound/etc/unbound + if test -d /etc/unbound; then + mkdir -p /var/lib/unbound/etc/unbound ${pkgs.utillinux}/bin/mount -o bind,ro -n /etc/unbound /var/lib/unbound/etc/unbound fi ''; -- cgit v1.2.3