Update yunohost_tools.py

This commit is contained in:
Alexis Gavoty 2013-10-26 23:11:31 +02:00
parent 6893a51514
commit d0664f520d

View file

@ -243,7 +243,7 @@ def tools_postinstall(domain, password, dyndns=False):
os.system('hostname yunohost.yunohost.org') os.system('hostname yunohost.yunohost.org')
# Samba sh*t fix # Samba sh*t fix
if os.system('net getlocalsid > /dev/null') != 0: if os.system('net getlocalsid > /dev/null 2>&1') != 0:
os.system('apt-get install --reinstall -y -qq samba yunohost-config-samba') os.system('apt-get install --reinstall -y -qq samba yunohost-config-samba')
os.system('smbpasswd -w yunohost') os.system('smbpasswd -w yunohost')