diff --git a/yunohost_tools.py b/yunohost_tools.py index 45051507..1440dae9 100644 --- a/yunohost_tools.py +++ b/yunohost_tools.py @@ -123,8 +123,8 @@ def tools_maindomain(old_domain, new_domain): if old_domain is not 'yunohost.org': lemon_conf_lines.extend([ - "$tmp->{'locationRules'}->{'"+ old_domain +"'}->{'(?#0ynh_admin)^/ynh-admin/'} = '';", - "$tmp->{'locationRules'}->{'"+ old_domain +"'}->{'(?#0ynh_user)^/ynh-user/'} = '';" + "delete $tmp->{'locationRules'}->{'"+ old_domain +"'}->{'(?#0ynh_admin)^/ynh-admin/'};", + "delete $tmp->{'locationRules'}->{'"+ old_domain +"'}->{'(?#0ynh_user)^/ynh-user/'};" ]) with open(lemon_tmp_conf,'a') as lemon_conf: