extension share
This commit is contained in:
@@ -46,7 +46,8 @@ def desktop(user_uuid, course_id, chapter_name, lesson_name):
|
|||||||
subprocess.Popen([
|
subprocess.Popen([
|
||||||
"sudo", "-u", user_id,
|
"sudo", "-u", user_id,
|
||||||
"code-server", "--bind-addr", f"0.0.0.0:{code_server_port}",
|
"code-server", "--bind-addr", f"0.0.0.0:{code_server_port}",
|
||||||
"--auth", "none", path_dir
|
"--auth", "none", path_dir,
|
||||||
|
"--extensions-dir", "/share/extension/"
|
||||||
])
|
])
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
print(f"Error start code-server at {code_server_port} with path{path_dir} {e}")
|
print(f"Error start code-server at {code_server_port} with path{path_dir} {e}")
|
||||||
|
|||||||
Reference in New Issue
Block a user