[fix] YunoHost admin & API path

This commit is contained in:
kload 2014-04-24 14:15:48 +00:00
parent 0ccfa1edff
commit 87e7adcf15

View file

@ -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')