From edaf1b4ad245d1cbda96ca50cec421ab7784f452 Mon Sep 17 00:00:00 2001 From: ymq Date: Thu, 13 Aug 2026 17:58:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20bwrap=20=E6=A3=80=E6=B5=8B=20/d/pipeline?= =?UTF-8?q?/bin/bwrap=20=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pipeline_service/deploy_account.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pipeline_service/deploy_account.py b/pipeline_service/deploy_account.py index 2b02028..09b3f2d 100644 --- a/pipeline_service/deploy_account.py +++ b/pipeline_service/deploy_account.py @@ -24,6 +24,8 @@ DEPLOY_ENV_BASE = "/d/pipeline/deploy_envs" # bwrap 可执行文件(未安装时为 None,降级为目录隔离) BWRAP = shutil.which("bwrap") +if not BWRAP and os.path.exists("/d/pipeline/bin/bwrap"): + BWRAP = "/d/pipeline/bin/bwrap" # 账号名合法字符(目录安全,防路径穿越) _SAFE_RE = re.compile(r"[^a-zA-Z0-9_-]")