mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Update yunohost_tools.py
This commit is contained in:
parent
510d970da3
commit
fe3a51dd3e
1 changed files with 2 additions and 1 deletions
|
@ -117,7 +117,8 @@ def tools_maindomain(old_domain, new_domain):
|
||||||
"$tmp->{'domain'} = '"+ new_domain +"';", # Replace Lemon domain
|
"$tmp->{'domain'} = '"+ new_domain +"';", # Replace Lemon domain
|
||||||
"$tmp->{'ldapBase'} = 'dc=yunohost,dc=org';", # Set ldap basedn
|
"$tmp->{'ldapBase'} = 'dc=yunohost,dc=org';", # Set ldap basedn
|
||||||
"$tmp->{'portal'} = 'https://"+ new_domain +"/sso/';", # Set SSO url
|
"$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:
|
with open(lemon_tmp_conf,'a') as lemon_conf:
|
||||||
|
|
Loading…
Reference in a new issue