From 0b024bdbf48f3ed8e1582158766ec9f8b18b5e81 Mon Sep 17 00:00:00 2001 From: Alexis Gavoty Date: Sat, 9 Mar 2013 19:24:32 +0100 Subject: [PATCH] Add useful script variables --- yunohost_app.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/yunohost_app.py b/yunohost_app.py index afff40fc..a0fcae45 100644 --- a/yunohost_app.py +++ b/yunohost_app.py @@ -246,7 +246,15 @@ def app_install(app, domain, path='/', label=None, mode='private'): unique_app_id = manifest['yunohost']['uid'] +'__'+ str(instance_number) app_final_path = apps_path +'/'+ unique_app_id - script_var_dict = { 'APP_DIR': app_tmp_folder } + script_var_dict = { + 'APP_DIR': app_tmp_folder, + 'APP_FINAL_DIR': app_final_path, + 'APP_ID': unique_app_id + } + + if lvl(manifest, 'yunohost', 'webapp'): + script_var_dict['APP_DOMAIN'] = domain + script_var_dict['APP_PATH'] = path #########################################