lxc-containers.nix: s/stdenv.shell/runtimeShell/
This commit is contained in:
parent
ea515088b3
commit
a9336c4513
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue