|
|
|
@ -6605,6 +6605,18 @@ Samba and Unix services") %", ".join(exclGroup)
|
|
|
|
|
self.createClVars()
|
|
|
|
|
# Устанавливаем доступные сети
|
|
|
|
|
self.clVars.Set("sr_samba_net_allow",allowNet,True)
|
|
|
|
|
# Задаем рабочую группу (домен)
|
|
|
|
|
if options.has_key("w"):
|
|
|
|
|
workgroup = options['w'].strip()
|
|
|
|
|
if len(workgroup)>15:
|
|
|
|
|
self.printERROR(_("A very long name of the command line \
|
|
|
|
|
options '-w, --workgroup'"))
|
|
|
|
|
return False
|
|
|
|
|
self.clVars.Set("sr_samba_domain",workgroup)
|
|
|
|
|
# Задаем netbios имя
|
|
|
|
|
if options.has_key("n"):
|
|
|
|
|
netbios = options['n'].strip()
|
|
|
|
|
self.clVars.Set("sr_samba_netbios",netbios)
|
|
|
|
|
# Удаляем из автозапуска демона
|
|
|
|
|
if not self.delDaemonAutostart("samba"):
|
|
|
|
|
return False
|
|
|
|
@ -6617,15 +6629,6 @@ Samba and Unix services") %", ".join(exclGroup)
|
|
|
|
|
# Имя устанавливаемого сервиса
|
|
|
|
|
self.clVars.Set("cl_pass_service","samba")
|
|
|
|
|
self.clVars.Write("sr_samba_set","off")
|
|
|
|
|
# Задаем рабочую группу
|
|
|
|
|
if options.has_key("w"):
|
|
|
|
|
workgroup = options['w'].strip()
|
|
|
|
|
self.clVars.Set("sr_samba_domain",workgroup)
|
|
|
|
|
# Задаем netbios имя
|
|
|
|
|
if options.has_key("n"):
|
|
|
|
|
netbios = options['n'].strip()
|
|
|
|
|
self.clVars.Set("sr_samba_netbios",netbios)
|
|
|
|
|
|
|
|
|
|
# Cоздаем объект профиль устанавливая директорию samba для
|
|
|
|
|
# файлов профилей
|
|
|
|
|
if not self.applyProfilesFromService('samba'):
|
|
|
|
|