Добавлено обновление путей fastlogin-domain

legacy27 3.6.9.3
parent b57d09fca4
commit 254004da89

@ -45,6 +45,7 @@ from socket import gethostbyname
import tarfile
from calculate.desktop.desktop import Desktop
from calculate.client.rsync import ProfileSyncer, ProfileSyncerError
from calculate.lib.utils.common import get_fastlogin_domain_path
from calculate.lib.cl_lang import setLocalTranslate, getLazyLocalTranslate
@ -1434,3 +1435,17 @@ class Client(commandServer, encrypt, Desktop):
os.chmod(changeDir, 0700)
self.endTask()
return True
def update_fastlogin_domain_path(self):
fn = '/var/lib/calculate/calculate-desktop/fastlogin-domain'
try:
with writeFile(fn) as f:
f.write("{}\n".format(
"\n".join(get_fastlogin_domain_path(self.clVars))))
except Exception:
if os.path.exists(fn):
try:
os.unlink(fn)
except Exception:
pass
return True

@ -102,6 +102,11 @@ class ClClientAction(Action):
'method': 'Client.applyClientTemplates(cl_remote_host)',
'depend': Tasks.success_all('mount_remote')
},
# обновить информацию для fastlogin-domain
{'name': 'need_templates:update_fastlogin',
'method': 'Client.update_fastlogin_domain_path()',
'depend': Tasks.success_all('mount_remote')
},
# наложить недоменные шаблоны в случае локального режима
# или были проблемы с подключением удаленноых ресурсов
{'name': 'need_templates:apply_templates',

Loading…
Cancel
Save