propellor spin
This commit is contained in:
parent
09e79e6263
commit
5e1a47552a
|
@ -140,7 +140,7 @@ enterScript c@(Container name _ _ _) = RevertableProperty setup teardown
|
|||
, "# Generated by propellor"
|
||||
, "pid=\"$(machinectl show " ++ shellEscape name ++ " -p Leader | cut -d= -f2)\" || true"
|
||||
, "if [ -n \"$pid\" ]; then"
|
||||
, "\tnsenter -p -u -n -i -m -t \"$pid\""
|
||||
, "\tnsenter -p -u -n -i -m -t \"$pid\" \"$@\""
|
||||
, "else"
|
||||
, "\techo container not running >&2"
|
||||
, "\texit 1"
|
||||
|
|
Loading…
Reference in New Issue