Add useful script variables

This commit is contained in:
Alexis Gavoty 2013-03-09 19:24:32 +01:00
parent 11c2a78835
commit 0b024bdbf4

View file

@ -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
#########################################