mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
set url when register and url
This commit is contained in:
parent
67e03e6f1b
commit
4ce9e4a446
1 changed files with 3 additions and 0 deletions
|
@ -1326,6 +1326,7 @@ def app_register_url(app, domain, path):
|
||||||
domain -- The domain on which the app should be registered (e.g. your.domain.tld)
|
domain -- The domain on which the app should be registered (e.g. your.domain.tld)
|
||||||
path -- The path to be registered (e.g. /coffee)
|
path -- The path to be registered (e.g. /coffee)
|
||||||
"""
|
"""
|
||||||
|
from permission import permission_url
|
||||||
|
|
||||||
domain, path = _normalize_domain_path(domain, path)
|
domain, path = _normalize_domain_path(domain, path)
|
||||||
|
|
||||||
|
@ -1342,6 +1343,8 @@ def app_register_url(app, domain, path):
|
||||||
|
|
||||||
app_setting(app, 'domain', value=domain)
|
app_setting(app, 'domain', value=domain)
|
||||||
app_setting(app, 'path', value=path)
|
app_setting(app, 'path', value=path)
|
||||||
|
if domain and path:
|
||||||
|
permission_url(app + ".main", url='/')
|
||||||
|
|
||||||
|
|
||||||
def app_ssowatconf():
|
def app_ssowatconf():
|
||||||
|
|
Loading…
Add table
Reference in a new issue