|
|
|
@ -35,7 +35,7 @@ from calculate.lib.cl_print import color_print
|
|
|
|
|
from calculate.lib.cl_ldap import ldapUser
|
|
|
|
|
from calculate.lib.utils.ip import Pinger, isOpenPort, IPError
|
|
|
|
|
from calculate.lib.utils.files import (runOsCommand, getModeFile, removeDir,
|
|
|
|
|
isMount,pathJoin,tarLinks)
|
|
|
|
|
isMount, readFile, pathJoin, tarLinks)
|
|
|
|
|
from calculate.lib.utils.common import (getpathenv, appendProgramToEnvFile,
|
|
|
|
|
removeProgramToEnvFile)
|
|
|
|
|
from _cl_keys import getKey, clearKey
|
|
|
|
@ -838,7 +838,10 @@ class Client(commandServer, encrypt):
|
|
|
|
|
# upgrade user profile or create need profile directory
|
|
|
|
|
self.upgradeUserProfile(self.userName, self.homeDir, rpath)
|
|
|
|
|
# profile directory
|
|
|
|
|
fileConfig = os.path.join(self.homeDir, self.configFileServer)
|
|
|
|
|
pathProfile = os.path.join(rpath, osLinuxShort)
|
|
|
|
|
if not readFile(fileConfig).strip():
|
|
|
|
|
return True,pathProfile
|
|
|
|
|
fileSoftConfigThis = os.path.join(pathProfile,
|
|
|
|
|
self.configFileSoft)
|
|
|
|
|
fileSoftConfigCur = os.path.join(self.homeDir,
|
|
|
|
|