mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Do not restart yunohost-api anymore
This commit is contained in:
parent
d7bc60bcbc
commit
4599a2724f
1 changed files with 5 additions and 12 deletions
11
tools.py
11
tools.py
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue