Remove the running state when uninstalling DS instances.

We don't need to do anything with the state but if it exists in
the sysrestore index at the end of uninstallation the uninstaller will
complain about it.

https://fedorahosted.org/freeipa/ticket/2637
This commit is contained in:
Rob Crittenden 2012-04-16 17:03:46 -04:00 committed by Martin Kosek
parent 568de5027b
commit 9c39f95f21
2 changed files with 6 additions and 0 deletions

View File

@ -385,6 +385,9 @@ class CADSInstance(service.Service):
enabled = self.restore_state("enabled")
serverid = self.restore_state("serverid")
# Just eat this state if it exists
running = self.restore_state("running")
if not enabled is None and not enabled:
ipaservices.knownservices.dirsrv.disable()

View File

@ -627,6 +627,9 @@ class DsInstance(service.Service):
enabled = self.restore_state("enabled")
# Just eat this state if it exists
running = self.restore_state("running")
try:
self.fstore.restore_file("/etc/security/limits.conf")
self.fstore.restore_file("/etc/sysconfig/dirsrv")