summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-install
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2008-12-01 15:06:20 -0500
committerSimo Sorce <ssorce@redhat.com>2008-12-01 17:18:57 -0500
commitde7b4108d7f9e1c4aec09ca6aa3a3ccf16a6c7a1 (patch)
treeaa4bc112da2791ccf383824d1407fdad0020e7cf /ipa-server/ipa-install
parentb87a025ce895c554a1bf944772af04fe5da7f805 (diff)
downloadfreeipa-de7b4108d7f9e1c4aec09ca6aa3a3ccf16a6c7a1.tar.gz
freeipa-de7b4108d7f9e1c4aec09ca6aa3a3ccf16a6c7a1.tar.xz
freeipa-de7b4108d7f9e1c4aec09ca6aa3a3ccf16a6c7a1.zip
Make sure the CA cert is copied to the replica, fail if no ca.crt is available. Cope with some versions of ipa that forgot to copy the ca.crt cert in the right place.
Diffstat (limited to 'ipa-server/ipa-install')
-rw-r--r--ipa-server/ipa-install/ipa-replica-prepare2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipa-server/ipa-install/ipa-replica-prepare b/ipa-server/ipa-install/ipa-replica-prepare
index 07a21826e..eb962b4c1 100644
--- a/ipa-server/ipa-install/ipa-replica-prepare
+++ b/ipa-server/ipa-install/ipa-replica-prepare
@@ -155,10 +155,10 @@ def copy_files(realm_name, dir):
try:
shutil.copy("/var/kerberos/krb5kdc/ldappwd", dir + "/ldappwd")
shutil.copy("/var/kerberos/krb5kdc/kpasswd.keytab", dir + "/kpasswd.keytab")
+ shutil.copy("/usr/share/ipa/html/ca.crt", dir + "/ca.crt")
if ipautil.file_exists("/usr/share/ipa/html/preferences.html"):
shutil.copy("/usr/share/ipa/html/preferences.html", dir + "/preferences.html")
shutil.copy("/usr/share/ipa/html/configure.jar", dir + "/configure.jar")
- shutil.copy(config_dir + "/cacert.asc", dir + "/ca.crt")
except Exception, e:
print "error copying files: " + str(e)
sys.exit(1)