diff --git a/src/Propellor/Property/Systemd.hs b/src/Propellor/Property/Systemd.hs index 428d11b..862b674 100644 --- a/src/Propellor/Property/Systemd.hs +++ b/src/Propellor/Property/Systemd.hs @@ -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"