mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] YunoHost admin & API path
This commit is contained in:
parent
0ccfa1edff
commit
87e7adcf15
1 changed files with 3 additions and 3 deletions
|
@ -872,7 +872,7 @@ def app_ssowatconf(auth):
|
||||||
protected_regex.append(item)
|
protected_regex.append(item)
|
||||||
|
|
||||||
for domain in domains:
|
for domain in domains:
|
||||||
skipped_urls.extend([domain +'/ynhadmin', domain +'/ynhapi'])
|
skipped_urls.extend([domain +'/yunohost/admin', domain +'/yunohost/api'])
|
||||||
|
|
||||||
with open('/etc/ssowat/conf.json') as f:
|
with open('/etc/ssowat/conf.json') as f:
|
||||||
conf_dict = json.load(f)
|
conf_dict = json.load(f)
|
||||||
|
@ -901,8 +901,8 @@ def app_ssowatconf(auth):
|
||||||
conf_dict['protected_regex'] = protected_regex
|
conf_dict['protected_regex'] = protected_regex
|
||||||
conf_dict['users'] = users
|
conf_dict['users'] = users
|
||||||
|
|
||||||
with open('/etc/ssowat/conf.json', 'wb') as f:
|
with open('/etc/ssowat/conf.json', 'w+') as f:
|
||||||
json.dump(conf_dict, f)
|
json.dump(conf_dict, f, sort_keys=True, indent=4)
|
||||||
|
|
||||||
msignals.display(_('SSOwat configuration generated'), 'success')
|
msignals.display(_('SSOwat configuration generated'), 'success')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue