Skip to content

Commit

Permalink
Fix os.chown and os.chmod arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
m0nhawk authored Jan 10, 2025
1 parent 0881d2d commit 8f87e0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tube/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
try:
uid = getpwnam("gen3").pw_uid
gid = getpwnam("gen3").pw_gid
os.chown("/result", uid)
os.chmod("/result", gid)
os.chown("/result", uid, gid)
os.chmod("/result", 700)
except Exception as e:
print(f"Could not update access: {e}")

0 comments on commit 8f87e0e

Please sign in to comment.