mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Keep -x to show executed commands at hook execution
This commit is contained in:
parent
2dd10fd282
commit
c8c15f291b
1 changed files with 2 additions and 1 deletions
|
@ -308,7 +308,8 @@ def hook_exec(file, args=None):
|
|||
|
||||
p = subprocess.Popen(
|
||||
['sudo', '-u', 'admin', '-H', 'sh', '-c', 'cd "{:s}" && ' \
|
||||
'/bin/bash "{:s}" {:s}'.format(file_path, file, arg_str)],
|
||||
'/bin/bash -x "{:s}" {:s}'.format(
|
||||
file_path, file, arg_str)],
|
||||
stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
|
||||
shell=False)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue