develop
asamoukin 16 years ago
parent c67f71b4e0
commit fdfec0762f

@ -459,11 +459,13 @@ class cl_client(imp_cl_err, imp_cl_xml, imp_cl_help, imp_cl_smcon):
homeDir = os.path.join("/home",userName)
self.clVars.Set('cl_root_path',homeDir,True)
homeExists = os.path.exists(homeDir)
if homeExists and os.listdir(homeDir):
if homeExists and set(os.listdir(homeDir))-set(["Home","Disks"]):
self.printWARNING(_("home dir %s exists")%homeDir)
alwProfilePath = self.getAlwaysProfilePath()
if not alwProfilePath:
return True
self.printSUCCESS(_("apply always profiles") + " ...")
self.clVars.Set('cl_profile_path',alwProfilePath, True)
if not os.path.exists(homeDir):
@ -480,6 +482,7 @@ class cl_client(imp_cl_err, imp_cl_xml, imp_cl_help, imp_cl_smcon):
self.chownR(homeDir, uid, gid, dirsAndFiles)
if not homeExists:
self.printSUCCESS(_("created home dir %s")%homeDir + " ...")
self.printSUCCESS(_("User Profile is configured") + " ...")
return True
def isDomain(self):

Loading…
Cancel
Save