You've already forked code_examples_server
mirror of
https://github.com/AdaCore/code_examples_server.git
synced 2026-02-12 12:45:18 -08:00
Change the ownership of files on container to the runner id
This commit is contained in:
@@ -221,6 +221,10 @@ def run_program(request):
|
||||
try:
|
||||
subprocess.check_call(["lxc", "file", "push", "--recursive", tempd,
|
||||
"safecontainer/workspace/sessions/"])
|
||||
subprocess.check_call(["lxc", "exec", "safecontainer", "--",
|
||||
"chown", "-R", "runner",
|
||||
"/workspace/sessions/{}".format
|
||||
(os.path.basename(tempd))])
|
||||
subprocess.check_call(["lxc", "exec", "safecontainer", "--",
|
||||
"chmod", "-R", "a+rx",
|
||||
"/workspace/sessions/{}".format
|
||||
|
||||
Reference in New Issue
Block a user