mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Also copy the script env
This commit is contained in:
parent
2428f01521
commit
81f3b493e4
1 changed files with 4 additions and 1 deletions
|
@ -397,9 +397,12 @@ def _hook_exec_bash(path, args, chdir, env, return_format, loggers):
|
||||||
|
|
||||||
logger.debug("Executing command '%s'" % cmd)
|
logger.debug("Executing command '%s'" % cmd)
|
||||||
|
|
||||||
|
_env = os.environ.copy()
|
||||||
|
_env.update(env)
|
||||||
|
|
||||||
returncode = call_async_output(
|
returncode = call_async_output(
|
||||||
cmd, loggers, shell=True, cwd=chdir,
|
cmd, loggers, shell=True, cwd=chdir,
|
||||||
stdinfo=stdinfo, env=env
|
stdinfo=stdinfo, env=_env
|
||||||
)
|
)
|
||||||
|
|
||||||
raw_content = None
|
raw_content = None
|
||||||
|
|
Loading…
Add table
Reference in a new issue