From 3e66f0359a927e7429a9deae4b581ce695d988d6 Mon Sep 17 00:00:00 2001 From: Alexis Gavoty Date: Mon, 3 Jun 2013 12:08:39 +0200 Subject: [PATCH] Delete old locationRules THE HARD WAY --- yunohost_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: