Skip to content

Commit 13a5bcd

Browse files
David LiDavid Li
authored andcommitted
Fix permission change after compilation
1 parent d6394cd commit 13a5bcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apiserver/worker/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def executeCompileTask(user_id, bot_id, backend):
164164
# Make things group-readable
165165
subprocess.call([
166166
"sudo", "-H", "-u", "bot_compilation", "-s",
167-
"chmod", "-R", "2770", temp_dir,
167+
"chmod", "-R", "g+r", temp_dir,
168168
], stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL)
169169
archive_path = os.path.join(temp_dir, str(user_id)+".zip")
170170
archive.zipFolder(temp_dir, archive_path)

0 commit comments

Comments
 (0)