[fix] Postinstall fail with a list of domains

This commit is contained in:
Alexis Gavoty 2014-06-28 10:47:57 +02:00
parent a0d4a90ab2
commit a92f7b8167

View file

@ -140,7 +140,7 @@ def tools_maindomain(auth, old_domain=None, new_domain=None, dyndns=False):
for line in lines:
sources.write(re.sub(r''+ old_domain +'', new_domain, line))
domain_add(auth, [new_domain], main=True)
domain_add(auth, new_domain, main=True)
os.system('rm /etc/ssl/private/yunohost_key.pem')
os.system('rm /etc/ssl/certs/yunohost_crt.pem')