Skip to content
Snippets Groups Projects
Commit 8f8ef3d3 authored by Tim Kreuzer's avatar Tim Kreuzer
Browse files

permission fix - 2

parent 40268ce5
No related branches found
No related tags found
1 merge request!11Permission fix
Pipeline #106834 passed
......@@ -122,9 +122,12 @@ def run_popen_cmd(
def result():
os.setuid(1000)
os.setgid(100)
return result
with subprocess.Popen(cmd, stderr=subprocess.PIPE, stdout=subprocess.PIPE, preexec_fn=set_uid) as p:
with subprocess.Popen(
cmd, stderr=subprocess.PIPE, stdout=subprocess.PIPE, preexec_fn=set_uid()
) as p:
stdout, stderr = p.communicate()
returncode = p.returncode
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment