fix permisson bug
This commit is contained in:
@@ -120,7 +120,7 @@ def desktop(user_uuid, course_id, chapter_name, lesson_name):
|
||||
)
|
||||
# 确保文件的所有权归 user_id
|
||||
subprocess.run(
|
||||
["sudo", "chown", f"{user_id}:shared_group_{user_id}", config_path],
|
||||
["sudo", "chown","-R", f"flask:shared_group_{user_id}", config_path],
|
||||
check=True
|
||||
)
|
||||
subprocess.run(
|
||||
|
||||
Reference in New Issue
Block a user