fix permisson bug

This commit is contained in:
Cai
2025-09-29 12:51:14 +08:00
parent dc0eeaa933
commit 10481b0ba4
9 changed files with 3744 additions and 4 deletions

View File

@@ -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(