fix standalone installation of externally signed CA on IPA master

https://fedorahosted.org/freeipa/ticket/5636

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Martin Babinsky 2016-01-26 13:41:37 +01:00 committed by Martin Basti
parent d53c2f6b80
commit 72e72615df

View File

@ -276,7 +276,8 @@ def main():
if not dsinstance.DsInstance().is_configured():
sys.exit("IPA server is not configured on this system.\n")
if cainstance.is_ca_installed_locally():
if (not options.external_cert_files and
cainstance.is_ca_installed_locally()):
sys.exit("CA is already installed on this host.")
standard_logging_setup(paths.IPASERVER_CA_INSTALL_LOG, debug=options.debug)