summaryrefslogtreecommitdiffstats
path: root/ipa-client/ipa-install
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-11-19 23:12:42 -0500
committerRob Crittenden <rcritten@redhat.com>2010-11-22 14:47:15 -0500
commitf6b094156d4ae84d9c50a86c3e78f928f0827235 (patch)
tree5ca83330d812791e9b5692f37f2cacf24e8d5807 /ipa-client/ipa-install
parentc53c0ca1ad5d236c3bc8be719a04d223ad8afbf7 (diff)
downloadfreeipa-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-xipa-client/ipa-install/ipa-client-install6
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