[enh] default action cwd to the app yunohost app settings folder

This commit is contained in:
Laurent Peuch 2018-07-19 01:03:15 +02:00
parent 99b395d823
commit fbaac17870

View file

@ -1416,7 +1416,7 @@ def app_action_run(app_id, action, args=None):
path,
args=args_list,
env=env_dict,
chdir=action_declaration.get("cwd"),
chdir=action_declaration.get("cwd", "/etc/yunohost/apps/" + app_id),
user=action_declaration.get("user", "root"),
)