From a8369acfe6db356944ae7844eacac6112cc1f786 Mon Sep 17 00:00:00 2001 From: npze Date: Mon, 22 Jul 2013 17:57:46 +0200 Subject: [PATCH] fix variable not defined --- yunohost_app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yunohost_app.py b/yunohost_app.py index dd70a4ce..60446fac 100644 --- a/yunohost_app.py +++ b/yunohost_app.py @@ -332,7 +332,7 @@ def app_upgrade(app, instance=[], url=None, file=None): os.system('cp -a "'+ app_tmp_folder +'" "'+ app_final_path +'"') if is_web: - if app_type != 'privileged' and app_type != 'certified': + if manifest['type'] != 'privileged' and manifest['type'] != 'certified': os.system('chown -R www-data: "'+ app_final_path +'"') os.system('service apache2 reload') shutil.rmtree(app_final_path + manifest['yunohost']['script_path']) @@ -545,7 +545,7 @@ def app_install(app, domain, path='/', label=None, mode='private'): os.system('cp -a "'+ app_tmp_folder +'" "'+ app_final_path +'"') if is_web: - if app_type != 'privileged' and app_type != 'certified': + if manifest['type'] != 'privileged' and manifest['type'] != 'certified': os.system('chown -R www-data: "'+ app_final_path +'"') os.system('service apache2 reload') shutil.rmtree(app_final_path + manifest['yunohost']['script_path'])