lxc-containers.nix: s/stdenv.shell/runtimeShell/
This commit is contained in:
parent
ea515088b3
commit
a9336c4513
|
@ -148,7 +148,7 @@ in
|
||||||
ExecStart =
|
ExecStart =
|
||||||
let
|
let
|
||||||
script = pkgs.writeScript "start-lxc-container.sh" ''
|
script = pkgs.writeScript "start-lxc-container.sh" ''
|
||||||
#! ${pkgs.stdenv.shell} -e
|
#! ${pkgs.runtimeShell} -e
|
||||||
|
|
||||||
[ -e /var/lib/lxc/$1/rootfs ]
|
[ -e /var/lib/lxc/$1/rootfs ]
|
||||||
exec ${pkgs.lxc}/bin/lxc-start -F -C -n $1
|
exec ${pkgs.lxc}/bin/lxc-start -F -C -n $1
|
||||||
|
@ -159,7 +159,7 @@ in
|
||||||
ExecReload =
|
ExecReload =
|
||||||
let
|
let
|
||||||
script = pkgs.writeScript "reload-lxc-container.sh" ''
|
script = pkgs.writeScript "reload-lxc-container.sh" ''
|
||||||
#! ${pkgs.stdenv.shell} -e
|
#! ${pkgs.runtimeShell} -e
|
||||||
|
|
||||||
SYSTEM=$(dirname $(readlink $(readlink /var/lib/lxc/$1/rootfs)/init))
|
SYSTEM=$(dirname $(readlink $(readlink /var/lib/lxc/$1/rootfs)/init))
|
||||||
exec ${pkgs.lxc}/bin/lxc-attach -n $1 $SYSTEM/activate
|
exec ${pkgs.lxc}/bin/lxc-attach -n $1 $SYSTEM/activate
|
||||||
|
|
Loading…
Reference in New Issue