propellor spin

This commit is contained in:
Joey Hess 2014-11-21 13:57:58 -04:00
parent 09e79e6263
commit 5e1a47552a
Failed to extract signature
1 changed files with 1 additions and 1 deletions

View File

@ -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"