mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-27 16:46:42 -06:00
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:
parent
568de5027b
commit
9c39f95f21
@ -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()
|
||||
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user