mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Update yunohost_app.py
This commit is contained in:
parent
a99acca91a
commit
2c5b7371bb
1 changed files with 2 additions and 3 deletions
|
@ -422,12 +422,11 @@ 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 777 '+ app_setting_path)
|
||||||
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:
|
||||||
pass
|
os.system('chmod -R 700 '+ app_setting_path)
|
||||||
|
|
||||||
if os.path.exists(app_setting_path): shutil.rmtree(app_setting_path)
|
if os.path.exists(app_setting_path): shutil.rmtree(app_setting_path)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue