未验证 提交 aa2d485c 编写于 作者: C Cleber Rosa

Merge remote-tracking branch 'ldoktor/sysinfo-lang'

......@@ -151,6 +151,9 @@ class Command(Collectible):
env = os.environ.copy()
if "PATH" not in env:
env["PATH"] = "/usr/bin:/bin"
lang = settings.get_value("sysinfo.collect", "lang", str, None)
if lang:
env["LANG"] = lang
logf_path = os.path.join(logdir, self.logf)
stdin = open(os.devnull, "r")
stdout = open(logf_path, "w")
......@@ -185,6 +188,9 @@ class Daemon(Command):
env = os.environ.copy()
if "PATH" not in env:
env["PATH"] = "/usr/bin:/bin"
lang = settings.get_value("sysinfo.collect", "lang", str, None)
if lang:
env["LANG"] = lang
logf_path = os.path.join(logdir, self.logf)
stdin = open(os.devnull, "r")
stdout = open(logf_path, "w")
......
......@@ -19,6 +19,8 @@ enabled = True
installed_packages = False
# Whether to run certain commands in bg to give extra job debug information
profiler = False
# Force LANG for sysinfo collection
lang = C
[sysinfo.collectibles]
# File with list of commands that will be executed and have their output collected
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册