diff options
| -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 |
