Добавление запуска обновления dbus после процедуры

--mount


git-svn-id: http://svn.calculate.ru/calculate2/calculate-client/trunk@1494 c91db197-33c1-4113-bf15-f8a5c547ca64
develop
mhiretskiy 15 years ago
parent d3463b5033
commit 8def3ba660

@ -1021,6 +1021,7 @@ conjunction with the 'login' or 'logout'")
self.clVars.flIniFile()
if not self.applyRelevanceProfiles(domain):
return False
self.reloadDBus()
return True
def delDomain(self):
@ -1254,17 +1255,23 @@ or ld_bind_dn or ld_bind_pw")
self.printERROR(_("Not apply 'install/domain' profiles"))
return False
# Рестартуем dbus
self.reloadDBus()
if not self.setDaemonAutostart("client"):
return False
self.printOK(_("Computer added to domain %s")%domain + " ...")
return True
def reloadDBus(self):
"""Обновление DBus"""
if os.path.exists('/etc/init.d/dbus'):
textLines = self.execProg("/etc/init.d/dbus restart", False, False)
textLines = self.execProg("/etc/init.d/dbus reload", False, False)
if not (textLines and type(textLines) == types.ListType and\
"ok" in textLines[-1] or textLines and "ok" in textLines):
self.printWARNING(_("Error restarting /etc/init.d/dbus")+" ...")
self.printWARNING(_("Error reloading /etc/init.d/dbus")+" ...")
return False
if not self.setDaemonAutostart("client"):
return False
self.printOK(_("Computer added to domain %s")%domain + " ...")
return True
def removePrivateFiles(self, userHome):
"""Удаление приватных файлов"""
privateFiles = ['.kde4/share/apps/kwallet/kdewallet.kwl']

Loading…
Cancel
Save