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}")