mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Restart API at the end of postinstall
This commit is contained in:
parent
e465c7567b
commit
d5b8c568c5
1 changed files with 2 additions and 1 deletions
|
@ -242,7 +242,7 @@ def tools_postinstall(domain, password, dyndns=False):
|
|||
# Set hostname to avoid amavis bug
|
||||
if os.system('hostname -d') != 0:
|
||||
os.system('hostname yunohost.yunohost.org')
|
||||
|
||||
|
||||
# Samba sh*t fix
|
||||
if os.system('net getlocalsid > /dev/null 2>&1') != 0:
|
||||
os.system('apt-get install --reinstall -y -qq samba yunohost-config-samba')
|
||||
|
@ -284,6 +284,7 @@ def tools_postinstall(domain, password, dyndns=False):
|
|||
|
||||
os.system('touch /etc/yunohost/installed')
|
||||
os.system('service samba restart')
|
||||
os.system('service yunohost-api restart')
|
||||
|
||||
win_msg(_("YunoHost has been successfully configured"))
|
||||
|
||||
|
|
Loading…
Reference in a new issue