mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Handle wget failures trying to retrieve the CA during the client install
ticket 405
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user