diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2019-07-09 18:04:13 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2019-07-09 18:04:13 +0200 |
commit | 0ff739ab5a2c9c927edc8e14e125b047af0339b5 (patch) | |
tree | 8a2dccefa394d87abad0627f0f29137c1a862d73 | |
parent | 5d9e182e50bded8a801b31f7ee99479efa6052da (diff) | |
download | nixos-0ff739ab5a2c9c927edc8e14e125b047af0339b5.tar nixos-0ff739ab5a2c9c927edc8e14e125b047af0339b5.tar.gz nixos-0ff739ab5a2c9c927edc8e14e125b047af0339b5.tar.bz2 nixos-0ff739ab5a2c9c927edc8e14e125b047af0339b5.tar.xz nixos-0ff739ab5a2c9c927edc8e14e125b047af0339b5.zip |
...
-rw-r--r-- | hel.nix | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |