From a9336c45137b6a32c73784e76ec4d14e86c411aa Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 31 Mar 2021 01:22:41 +0200 Subject: [PATCH] lxc-containers.nix: s/stdenv.shell/runtimeShell/ --- nix/nixos-module/server/lxc-containers.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/nixos-module/server/lxc-containers.nix b/nix/nixos-module/server/lxc-containers.nix index affc7bf..0bcfacb 100644 --- a/nix/nixos-module/server/lxc-containers.nix +++ b/nix/nixos-module/server/lxc-containers.nix @@ -148,7 +148,7 @@ in ExecStart = let script = pkgs.writeScript "start-lxc-container.sh" '' - #! ${pkgs.stdenv.shell} -e + #! ${pkgs.runtimeShell} -e [ -e /var/lib/lxc/$1/rootfs ] exec ${pkgs.lxc}/bin/lxc-start -F -C -n $1 @@ -159,7 +159,7 @@ in ExecReload = let script = pkgs.writeScript "reload-lxc-container.sh" '' - #! ${pkgs.stdenv.shell} -e + #! ${pkgs.runtimeShell} -e SYSTEM=$(dirname $(readlink $(readlink /var/lib/lxc/$1/rootfs)/init)) exec ${pkgs.lxc}/bin/lxc-attach -n $1 $SYSTEM/activate