summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hel.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/hel.nix b/hel.nix
index 867442c2..6ae2d96a 100644
--- a/hel.nix
+++ b/hel.nix
@@ -147,11 +147,11 @@
147 preStart = '' 147 preStart = ''
148 if [[ -d /etc/unbound ]]; then 148 if [[ -d /etc/unbound ]]; then
149 ${pkgs.coreutils}/bin/mkdir -p /var/lib/unbound/etc/unbound 149 ${pkgs.coreutils}/bin/mkdir -p /var/lib/unbound/etc/unbound
150 ${pkgs.utillinux}/bin/mount --bind -n /etc/unbound /var/lib/unbound/etc/unbound 150 ${pkgs.utillinux}/bin/mount -o bind,ro -n /etc/unbound /var/lib/unbound/etc/unbound
151 fi 151 fi
152 ''; 152 '';
153 serviceConfig.ExecStopPost = lib.mkForce (pkgs.writeScript "unit-script-unbound-post-stop" '' 153 serviceConfig.ExecStopPost = lib.mkForce (pkgs.writeScript "unit-script-unbound-post-stop" ''
154 #!${pkgs.stdenv}/bin/bash 154 #!${pkgs.bash}/bin/bash
155 155
156 ${pkgs.utillinux}/bin/umount /var/lib/unbound/dev/random 156 ${pkgs.utillinux}/bin/umount /var/lib/unbound/dev/random
157 ${pkgs.utillinux}/bin/umount /var/lib/unbound/etc/unbound 157 ${pkgs.utillinux}/bin/umount /var/lib/unbound/etc/unbound