mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
upgrade: Raise error when certmonger is not running.
Certmonger should be running (should be started on system boot). Either user decided to stop it or it crashed. We should just error out and let user check & fix it. https://fedorahosted.org/freeipa/ticket/5080 Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
parent
ce50630d5e
commit
e3d3938f44
@ -1477,6 +1477,9 @@ def upgrade_check(options):
|
|||||||
print unicode(e)
|
print unicode(e)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
if not services.knownservices.certmonger.is_running():
|
||||||
|
raise RuntimeError('Certmonger is not running. Start certmonger and run upgrade again.')
|
||||||
|
|
||||||
if not options.skip_version_check:
|
if not options.skip_version_check:
|
||||||
# check IPA version and data version
|
# check IPA version and data version
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user