diff --git a/pym/client/client.py b/pym/client/client.py index 0b8125d..b932bc7 100644 --- a/pym/client/client.py +++ b/pym/client/client.py @@ -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 diff --git a/pym/client/utils/cl_client_sync.py b/pym/client/utils/cl_client_sync.py index 66e7ba4..c83b282 100644 --- a/pym/client/utils/cl_client_sync.py +++ b/pym/client/utils/cl_client_sync.py @@ -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")', }, # монтируем профиль локального домена, если локальный профиль # старее удаленного доменного или актуальный профиль