Исправлена первичная загрузка доменного профиля

legacy27 3.6.9.2
parent 0fbd098e79
commit b57d09fca4

@ -1325,17 +1325,19 @@ class Client(commandServer, encrypt, Desktop):
remoteProfile = "::profile/{}".format(profileName)
if not self.syncUserNew(ps, uid, gid, homeDir, "login",
remoteProfile, host=host):
if re.search(r'\[sender\] change_dir "{resPath}" \(in {resName}\) '
error_output = ps.output
if re.search(r'change_dir "\?{resPath}" \(in {resName}\) '
'failed: No such file or directory'.format(
resPath=profileName,
resName="profile"), ps.output):
resName="profile"), error_output) or \
not ps.exists(remoteProfile):
if clearHomeDir:
# clean home directory
if not self.clearHomeDir(homeDir):
return False
return True
else:
self.printERROR(ps.output)
self.printERROR(error_output)
self.printERROR(_("Failed to execute rsync"))
return False
return True

@ -174,7 +174,7 @@ class ClClientSyncLoginAction(Action):
'message': __("Mounting user resources"),
'method': 'Client.mountUserDomainRes(ur_login,'
'desktop.ur_password,'
'ur_uid,ur_gid,"share","homes","ftp")',
'ur_uid,ur_gid,"homes","share","ftp")',
},
# монтируем профиль локального домена, если локальный профиль
# старее удаленного доменного или актуальный профиль

Loading…
Cancel
Save