From 8c623d20fb1438c8e6006ba7714c6841517aa3a4 Mon Sep 17 00:00:00 2001 From: kload Date: Wed, 23 Apr 2014 09:55:03 +0000 Subject: [PATCH] [fix] Replace in string fix --- lib/yunohost/domain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/yunohost/domain.py b/lib/yunohost/domain.py index bf74381b..d9dd0626 100644 --- a/lib/yunohost/domain.py +++ b/lib/yunohost/domain.py @@ -221,7 +221,7 @@ def domain_add(auth, domains, main=False, dyndns=False): # Nginx os.system('cp /usr/share/yunohost/yunohost-config/nginx/template.conf /etc/nginx/conf.d/%s.conf' % domain) os.system('mkdir /etc/nginx/conf.d/%s.d/' % domain) - os.system('sed -i s/yunohost.org/%s/g /etc/nginx/conf.d/%s.conf', (domain, domain)) + os.system('sed -i s/yunohost.org/%s/g /etc/nginx/conf.d/%s.conf' % (domain, domain)) os.system('service nginx reload') if auth.add('virtualdomain=%s,ou=domains' % domain, attr_dict):