diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-11-19 23:12:42 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-11-22 14:47:15 -0500 |
commit | f6b094156d4ae84d9c50a86c3e78f928f0827235 (patch) | |
tree | 5ca83330d812791e9b5692f37f2cacf24e8d5807 /ipa-client/ipa-install | |
parent | c53c0ca1ad5d236c3bc8be719a04d223ad8afbf7 (diff) | |
download | freeipa-f6b094156d4ae84d9c50a86c3e78f928f0827235.tar.gz freeipa-f6b094156d4ae84d9c50a86c3e78f928f0827235.tar.xz freeipa-f6b094156d4ae84d9c50a86c3e78f928f0827235.zip |
Handle wget failures trying to retrieve the CA during the client install
ticket 405
Diffstat (limited to 'ipa-client/ipa-install')
-rwxr-xr-x | ipa-client/ipa-install/ipa-client-install | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install index df3b4b518..443ba76fb 100755 --- a/ipa-client/ipa-install/ipa-client-install +++ b/ipa-client/ipa-install/ipa-client-install @@ -624,7 +624,11 @@ def main(): os.remove("/etc/ipa/ca.crt") except: pass - run(["/usr/bin/wget", "-O", "/etc/ipa/ca.crt", "http://%s/ipa/config/ca.crt" % cli_server]) + + 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 |