fix: 沙箱内 HOME=/home
This commit is contained in:
parent
edaf1b4ad2
commit
29a4a5e0ef
@ -243,6 +243,7 @@ def _build_bwrap_cmd(deploy_dir: str, command: str, workdir: str = "", network:
|
|||||||
"--dev", "/dev",
|
"--dev", "/dev",
|
||||||
"--tmpfs", "/tmp",
|
"--tmpfs", "/tmp",
|
||||||
"--bind", deploy_dir, "/home",
|
"--bind", deploy_dir, "/home",
|
||||||
|
"--setenv", "HOME", "/home",
|
||||||
]
|
]
|
||||||
if network == "isolated":
|
if network == "isolated":
|
||||||
parts.insert(1, "--unshare-net")
|
parts.insert(1, "--unshare-net")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user