mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 08:21:05 -06:00
Do not start the service in stopped_service if it was not running before.
This fixes a possible NSS database corruption in renew_ca_cert.
This commit is contained in:
parent
cb411ff94e
commit
7ce3320996
@ -821,9 +821,6 @@ def stopped_service(service, instance_name=""):
|
||||
root_logger.debug('Service %s%s is not running, continue.', service,
|
||||
log_instance_name)
|
||||
yield
|
||||
root_logger.debug('Starting %s%s.', service, log_instance_name)
|
||||
ipaservices.knownservices[service].start(instance_name)
|
||||
return
|
||||
else:
|
||||
# Stop the service, do the required stuff and start it again
|
||||
root_logger.debug('Stopping %s%s.', service, log_instance_name)
|
||||
|
Loading…
Reference in New Issue
Block a user