[fix] Replace in string fix

This commit is contained in:
kload 2014-04-23 09:55:03 +00:00
parent edb700b7da
commit 8c623d20fb

View file

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