Delete old locationRules THE HARD WAY

This commit is contained in:
Alexis Gavoty 2013-06-03 12:08:39 +02:00
parent b8ebd8986e
commit 3e66f0359a

View file

@ -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: