From 7f3d8956b9e94a017eb006aaf2c276bb12c636e3 Mon Sep 17 00:00:00 2001 From: github_bot <github_bot@noreply.github.com> Date: Mon, 19 Sep 2022 23:26:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A6=E5=8F=91=E6=9E=84=E5=BB=BA=E9=95=9C?= =?UTF-8?q?=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.py b/run.py index 1b35b4e..3cc7011 100644 --- a/run.py +++ b/run.py @@ -12,7 +12,7 @@ class DockerWechatHook: self.exit_container() def run_vnc(self): - # 根据VNCPASS环境变量生成vncpasswd文件 + # 根据 VNCPASS 环境变量生成 vncpasswd 文件 os.makedirs('/root/.vnc', mode=755, exist_ok=True) passwd_output = subprocess.run(['/usr/bin/vncpasswd','-f'],input=os.environ['VNCPASS'].encode(),capture_output=True) with open('/root/.vnc/passwd', 'wb') as f: