mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] Replace in string fix
This commit is contained in:
parent
edb700b7da
commit
8c623d20fb
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue