mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Delete old locationRules THE HARD WAY
This commit is contained in:
parent
b8ebd8986e
commit
3e66f0359a
1 changed files with 2 additions and 2 deletions
|
@ -123,8 +123,8 @@ def tools_maindomain(old_domain, new_domain):
|
||||||
|
|
||||||
if old_domain is not 'yunohost.org':
|
if old_domain is not 'yunohost.org':
|
||||||
lemon_conf_lines.extend([
|
lemon_conf_lines.extend([
|
||||||
"$tmp->{'locationRules'}->{'"+ old_domain +"'}->{'(?#0ynh_admin)^/ynh-admin/'} = '';",
|
"delete $tmp->{'locationRules'}->{'"+ old_domain +"'}->{'(?#0ynh_admin)^/ynh-admin/'};",
|
||||||
"$tmp->{'locationRules'}->{'"+ old_domain +"'}->{'(?#0ynh_user)^/ynh-user/'} = '';"
|
"delete $tmp->{'locationRules'}->{'"+ old_domain +"'}->{'(?#0ynh_user)^/ynh-user/'};"
|
||||||
])
|
])
|
||||||
|
|
||||||
with open(lemon_tmp_conf,'a') as lemon_conf:
|
with open(lemon_tmp_conf,'a') as lemon_conf:
|
||||||
|
|
Loading…
Reference in a new issue