Fix CA-less check in ipa-replica-install and ipa-ca-install.

https://fedorahosted.org/freeipa/ticket/3750
This commit is contained in:
Jan Cholasta authored and Petr Viktorin committed 2013-06-26 11:00:20 +02:00
1 parent ac2263d64c
commit 76dc2176f9
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -160,7 +160,7 @@ def main():
config.dir = dir
config.setup_ca = True
if ipautil.file_exists(config.dir + "/dscert.p12"):
if not ipautil.file_exists(config.dir + "/cacert.p12"):
print 'CA cannot be installed in CA-less setup.'
sys.exit(1)
+1 -1
View File
@@ -513,7 +513,7 @@ def main():
config.dir = dir
config.setup_ca = options.setup_ca
if config.setup_ca and ipautil.file_exists(config.dir + "/dscert.p12"):
if config.setup_ca and not ipautil.file_exists(config.dir + "/cacert.p12"):
print 'CA cannot be installed in CA-less setup.'
sys.exit(1)