From 889f0863b80a0c13a14aa69cd8563b5adde984b2 Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka Date: Oct 06 2016 05:06:38 +0000 Subject: Make installer quit more nicely on external CA installation cainstance.__spawn_instance() exits in rather weird manner on successful external CA install. This masks the weird implementation from the user. :-& https://fedorahosted.org/freeipa/ticket/6230 Reviewed-By: David Kupka --- diff --git a/ipaserver/install/cainstance.py b/ipaserver/install/cainstance.py index dea1110..0b502b2 100644 --- a/ipaserver/install/cainstance.py +++ b/ipaserver/install/cainstance.py @@ -596,7 +596,7 @@ class CAInstance(DogtagInstance): if self.external == 1: print("The next step is to get %s signed by your CA and re-run %s as:" % (self.csr_file, sys.argv[0])) print("%s --external-cert-file=/path/to/signed_certificate --external-cert-file=/path/to/external_ca_certificate" % sys.argv[0]) - raise ScriptError(rval=0) + sys.exit(0) else: shutil.move(paths.CA_BACKUP_KEYS_P12, paths.CACERT_P12)