From fbaac17870256b13c1e3304e4bbbb730c764bd3f Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Thu, 19 Jul 2018 01:03:15 +0200 Subject: [PATCH] [enh] default action cwd to the app yunohost app settings folder --- src/yunohost/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index cd7a5ba77..2287723bf 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -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"), )