diff --git a/yunohost_tools.py b/yunohost_tools.py index 7bc11c2d..4c2376ce 100644 --- a/yunohost_tools.py +++ b/yunohost_tools.py @@ -117,7 +117,8 @@ def tools_maindomain(old_domain, new_domain): "$tmp->{'domain'} = '"+ new_domain +"';", # Replace Lemon domain "$tmp->{'ldapBase'} = 'dc=yunohost,dc=org';", # Set ldap basedn "$tmp->{'portal'} = 'https://"+ new_domain +"/sso/';", # Set SSO url - "$tmp->{'locationRules'}->{'"+ new_domain +"'}->{'(?#0ynh_admin)^/ynh-admin/'} = '$uid eq \"admin\"';" + "$tmp->{'locationRules'}->{'"+ new_domain +"'}->{'(?#0ynh_admin)^/ynh-admin/'} = '$uid eq \"admin\"';", + "$tmp->{'locationRules'}->{'"+ new_domain +"'}->{'(?#1ynh_user)^/ynh-user/'} = '$uid ne \"admin\"';" ] with open(lemon_tmp_conf,'a') as lemon_conf: