develop
asamoukin 16 years ago
parent 29c200e0c7
commit 21e2b0d5cc

@ -859,7 +859,9 @@ install/6intranet" %(domain,servDn,unixDN,bindDn,bindPw)
# Удаленный ресурс share
pathRemote.append((os.path.join(homeDir,"Disks"), "share"))
flagError = False
i = 0
for path, res in pathRemote:
i += 1
# Создаем директории для монтирования
if not os.path.exists(path):
try:
@ -874,11 +876,19 @@ install/6intranet" %(domain,servDn,unixDN,bindDn,bindPw)
# Проверяем на монтирование директории
if self.isMount(path, 'cifs'):
continue
# Монтируем директории
mountStr="mount -t cifs -o user=%s,password=%s"%(userName,
if i==3:
# Монтируем директории c uid
mountStr="mount -t cifs -o user=%s,password=%s,uid=%s,gid=%s"\
%(userName,userPwd,uid,gid) + " " +\
"//%s/%s %s" %(self.clVars.Get("cl_remote_host"),
res, path)
else:
# Монтируем директории
mountStr="mount -t cifs -o user=%s,password=%s"%(userName,
userPwd) + " " +\
"//%s/%s %s" %(self.clVars.Get("cl_remote_host"),
res, path)
textLine = self.execProg(mountStr)
if not (textLine == None):
self.printERROR(_("Can not mount Samba resource [%s]")%res + \

Loading…
Cancel
Save