[fix] Do not restart yunohost-api anymore

This commit is contained in:
Kload 2014-05-17 21:40:24 +02:00
parent d7bc60bcbc
commit 4599a2724f

View file

@ -149,19 +149,13 @@ def tools_maindomain(auth, old_domain=None, new_domain=None, dyndns=False):
'ln -s /etc/yunohost/certs/%s/key.pem /etc/ssl/private/yunohost_key.pem' % new_domain,
'ln -s /etc/yunohost/certs/%s/crt.pem /etc/ssl/certs/yunohost_crt.pem' % new_domain,
'echo %s > /etc/yunohost/current_host' % new_domain,
'service nginx restart',
'service metronome restart',
'service postfix restart',
'service dovecot restart',
'service amavis restart'
'service amavis restart',
'service nginx restart',
]
try:
with open('/etc/yunohost/light') as f: pass
except IOError:
command_list.append('service amavis restart')
#command_list.append('service tahoe-lafs restart')
for command in command_list:
if os.system(command) != 0:
raise MoulinetteError(errno.EPERM,
@ -286,7 +280,6 @@ def tools_postinstall(domain, password, dyndns=False):
tools_adminpw(old_password='yunohost', new_password=password)
os.system('touch /etc/yunohost/installed')
os.system('service yunohost-api restart &')
msignals.display(m18n.n('yunohost_configured'), 'success')