Hook bugfix

This commit is contained in:
Kload 2013-10-29 15:16:47 +00:00
parent 8e764af4ef
commit a99acca91a

View file

@ -422,6 +422,8 @@ def app_remove(app):
raise YunoHostError(22, _("App is not installed")) raise YunoHostError(22, _("App is not installed"))
app_setting_path = apps_setting_path + app 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')
#TODO: display fail messages from script #TODO: display fail messages from script
if hook_exec(app_setting_path + '/scripts/remove') != 0: if hook_exec(app_setting_path + '/scripts/remove') != 0: