From fdfc7ad3dad3d242939f5b5c62ac94af75571114 Mon Sep 17 00:00:00 2001 From: abeudin Date: Mon, 29 Apr 2013 12:54:57 +0300 Subject: [PATCH] Update yunohost_tools.py --- yunohost_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yunohost_tools.py b/yunohost_tools.py index cae4a53e..6f837adc 100644 --- a/yunohost_tools.py +++ b/yunohost_tools.py @@ -81,7 +81,7 @@ def tools_maindomain(old_domain, new_domain): """ if not old_domain: - with open('/usr/share/yunohost/yunohost-config/others/current_host', 'r') as f: + with open('/etc/yunohost/current_host', 'r') as f: old_domain = f.readline().rstrip() validate(r'^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$', old_domain) @@ -141,7 +141,7 @@ def tools_maindomain(old_domain, new_domain): 'cp '+ tmp +'/ssl/yunoCA/ca/cacert.pem /etc/ssl/certs/ca-yunohost_crt.pem', 'cp '+ tmp +'/ssl/yunoCA/certs/yunohost_key.pem /etc/ssl/private/', 'cp '+ tmp +'/ssl/yunoCA/newcerts/01.pem /etc/ssl/certs/yunohost_crt.pem', - 'echo '+ new_domain +' > /usr/share/yunohost/yunohost-config/others/current_host', + 'echo '+ new_domain +' > /etc/yunohost/current_host', 'service apache2 restart', 'service postfix restart' ]