forked from zentralwerk/network
nixos-module/server/lxc-containers: use switch-to-configuration in ExecReload
This commit is contained in:
parent
421dba52fc
commit
d5f7aecba6
|
@ -174,7 +174,7 @@ in
|
|||
#! ${pkgs.runtimeShell} -e
|
||||
|
||||
SYSTEM=$(dirname $(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/bin/switch-to-configuration switch
|
||||
'';
|
||||
in
|
||||
"${script} %i";
|
||||
|
|
Loading…
Reference in New Issue