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"
|
, "# Generated by propellor"
|
||||||
, "pid=\"$(machinectl show " ++ shellEscape name ++ " -p Leader | cut -d= -f2)\" || true"
|
, "pid=\"$(machinectl show " ++ shellEscape name ++ " -p Leader | cut -d= -f2)\" || true"
|
||||||
, "if [ -n \"$pid\" ]; then"
|
, "if [ -n \"$pid\" ]; then"
|
||||||
, "\tnsenter -p -u -n -i -m -t \"$pid\""
|
, "\tnsenter -p -u -n -i -m -t \"$pid\" \"$@\""
|
||||||
, "else"
|
, "else"
|
||||||
, "\techo container not running >&2"
|
, "\techo container not running >&2"
|
||||||
, "\texit 1"
|
, "\texit 1"
|
||||||
|
|
Loading…
Reference in New Issue