Samba fixes...

This commit is contained in:
Alexis Gavoty 2013-10-26 21:50:36 +02:00
parent 97de68996a
commit 12105207ea

View file

@ -242,6 +242,10 @@ def tools_postinstall(domain, password, dyndns=False):
# Set hostname to avoid amavis bug # Set hostname to avoid amavis bug
if os.system('hostname -d') != 0: if os.system('hostname -d') != 0:
os.system('hostname yunohost.yunohost.org') os.system('hostname yunohost.yunohost.org')
# Samba sh*t fix
os.system('net setlocalsid $(ldapsearch -x -b "dc=yunohost,dc=org" -LLL "(objectclass=sambaDomain)" | grep SID | awk \'{print $2}\')')
os.system('smbpasswd -w yunohost')
# Create SSL CA # Create SSL CA
ssl_dir = '/usr/share/yunohost/yunohost-config/ssl/yunoCA' ssl_dir = '/usr/share/yunohost/yunohost-config/ssl/yunoCA'