From aa8664c334ee069abf21e07d328550a582bfbd86 Mon Sep 17 00:00:00 2001 From: deveco_xdevice Date: Mon, 30 Sep 2024 10:42:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81=E6=89=AB?= =?UTF-8?q?=E6=8F=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: deveco_xdevice --- src/xdevice/__main__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xdevice/__main__.py b/src/xdevice/__main__.py index c2f5615..53ba206 100644 --- a/src/xdevice/__main__.py +++ b/src/xdevice/__main__.py @@ -56,6 +56,7 @@ def check_report_template(): try: response = request.urlopen(url, timeout=5) with open(to_path, 'wb') as f: + os.chmod(to_path, 0o600) f.write(response.read()) except Exception as e: LOG.error(f"get report template resource error, {e}")