From 2c5b7371bbed012ae3f10a367b18b88aa2c4ade7 Mon Sep 17 00:00:00 2001 From: Alexis Gavoty Date: Tue, 29 Oct 2013 18:15:34 +0100 Subject: [PATCH] Update yunohost_app.py --- yunohost_app.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/yunohost_app.py b/yunohost_app.py index dcbabd27..8258da4b 100644 --- a/yunohost_app.py +++ b/yunohost_app.py @@ -422,12 +422,11 @@ def app_remove(app): raise YunoHostError(22, _("App is not installed")) app_setting_path = apps_setting_path + app - os.system('chown -R admin: '+ app_setting_path +'/scripts') - os.system('chmod -R 700 '+ app_setting_path +'/scripts') + os.system('chmod -R 777 '+ app_setting_path) #TODO: display fail messages from script if hook_exec(app_setting_path + '/scripts/remove') != 0: - pass + os.system('chmod -R 700 '+ app_setting_path) if os.path.exists(app_setting_path): shutil.rmtree(app_setting_path)