Handle wget failures trying to retrieve the CA during the client install

ticket 405
This commit is contained in:
Rob Crittenden
2010-11-19 23:12:42 -05:00
parent c53c0ca1ad
commit f6b094156d

View File

@@ -624,7 +624,11 @@ def main():
os.remove("/etc/ipa/ca.crt")
except:
pass
try:
run(["/usr/bin/wget", "-O", "/etc/ipa/ca.crt", "http://%s/ipa/config/ca.crt" % cli_server])
except CalledProcessError, e:
sys.exit('Retrieving CA from %s failed.\n%s' % (cli_server, str(e)))
if not options.on_master:
# First test out the kerberos configuration