lxc-containers.nix: s/stdenv.shell/runtimeShell/

This commit is contained in:
Astro 2021-03-31 01:22:41 +02:00
parent ea515088b3
commit a9336c4513
1 changed files with 2 additions and 2 deletions

View File

@ -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