|
@@ -161,8 +161,9 @@ class shellRunnerLinux:
|
|
|
if isinstance(script, list):
|
|
|
cmd = " ".join(script)
|
|
|
|
|
|
- p = subprocess.Popen(cmd, preexec_fn=_changeUid, stdout=subprocess.PIPE,
|
|
|
- stderr=subprocess.PIPE, shell=True, close_fds=True)
|
|
|
+ cmd_list = ["/bin/bash","--login","--noprofile","-c", cmd]
|
|
|
+ p = subprocess.Popen(cmd_list, preexec_fn=_changeUid, stdout=subprocess.PIPE,
|
|
|
+ stderr=subprocess.PIPE, shell=False, close_fds=True)
|
|
|
out, err = p.communicate()
|
|
|
code = p.wait()
|
|
|
logger.debug("Exitcode for %s is %d" % (cmd, code))
|