mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Cover small edge case where domain key doesnt exist
This commit is contained in:
parent
81add41fdd
commit
b7aa7f6fbb
1 changed files with 1 additions and 1 deletions
|
@ -911,7 +911,7 @@ def app_install(operation_logger, auth, app, label=None, args=None, no_remove_on
|
||||||
|
|
||||||
# Add path in permission if it's defined in the app install script
|
# Add path in permission if it's defined in the app install script
|
||||||
app_settings = _get_app_settings(app_instance_name)
|
app_settings = _get_app_settings(app_instance_name)
|
||||||
domain = app_settings['domain']
|
domain = app_settings.get('domain', None)
|
||||||
path = app_settings.get('path', None)
|
path = app_settings.get('path', None)
|
||||||
if domain and path:
|
if domain and path:
|
||||||
permission_update(auth, app_instance_name, permission="main", add_url=[domain+path], sync_perm=False)
|
permission_update(auth, app_instance_name, permission="main", add_url=[domain+path], sync_perm=False)
|
||||||
|
|
Loading…
Add table
Reference in a new issue