|
|
|
@ -113,11 +113,10 @@ class install(share):
|
|
|
|
|
if not self.isRoot():
|
|
|
|
|
return False
|
|
|
|
|
# Действие инсталяция
|
|
|
|
|
self.clVars.Set("cl_pass_action", "install", True)
|
|
|
|
|
self.clVars.Set("cl_action", "install", True)
|
|
|
|
|
if not self.applyTemplatesFromSystem():
|
|
|
|
|
self.printERROR(_("Can not apply install templates"))
|
|
|
|
|
return False
|
|
|
|
|
self.clVars.Write("cl_pass_action", "install", True)
|
|
|
|
|
self.printOK(_("Apply install templates"))
|
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
@ -130,11 +129,10 @@ class uninstall(share):
|
|
|
|
|
if not self.isRoot():
|
|
|
|
|
return False
|
|
|
|
|
# Действие деинсталяция
|
|
|
|
|
self.clVars.Set("cl_pass_action", "uninstall", True)
|
|
|
|
|
self.clVars.Set("cl_action", "uninstall", True)
|
|
|
|
|
if not self.applyTemplatesFromSystem():
|
|
|
|
|
self.printERROR(_("Can not apply uninstall templates"))
|
|
|
|
|
return False
|
|
|
|
|
self.clVars.Write("cl_pass_action", "uninstall", True)
|
|
|
|
|
self.printOK(_("Apply uninstall templates"))
|
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
@ -226,7 +224,7 @@ class desktop(share):
|
|
|
|
|
flagHomeExists = False
|
|
|
|
|
self.createUserDir(uid, gid, homeDir)
|
|
|
|
|
# Действие - шаблоны пользователя
|
|
|
|
|
self.clVars.Set("cl_pass_action", "desktop", True)
|
|
|
|
|
self.clVars.Set("cl_action", "desktop", True)
|
|
|
|
|
# Применяем профили для пользователя
|
|
|
|
|
dirsAndFiles = self.applyTemplatesFromUser(progress)
|
|
|
|
|
if not dirsAndFiles:
|
|
|
|
|