diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-11 19:50:26 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-11 19:50:26 +0000 |
commit | c36ea00019075938b66aa6b5d9a9a5c49f6dbc15 (patch) | |
tree | 876751a0432918a28743d833de1f070955bef5d8 /configure | |
parent | e93cdf5a66ef90b0b0ea64c80c7e4eebdecb55c9 (diff) |
Backport patch from stskeeps for checking success of gnutls cert generation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7435 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -713,13 +713,18 @@ if ($config{USE_GNUTLS} eq "y") { * few times and get that HD going :) Then answer the * * Questions which follow. If you are unsure, just hit enter * *************************************************************\n\n"; - make_gnutls_cert(); - print "\nCertificate generation complete, copying to config directory... "; - system("mv key.pem $config{CONFIG_DIR}/key.pem"); - system("mv cert.pem $config{CONFIG_DIR}/cert.pem"); - print "Done.\n\n"; - } else { - print "SSL Certificates found, skipping.\n\n" + make_gnutls_cert() or $failed = 1; + if (!$failed) { + print "\nCertificate generation complete, copying to config directory... "; + system("mv key.pem $config{CONFIG_DIR}/key.pem"); + system("mv cert.pem $config{CONFIG_DIR}/cert.pem"); + print "Done.\n\n"; + } else { + print "\n\033[1;32mCertificate generation failed!\033[0m\n\n"; + } + } + else { + print "SSL Certificates found, skipping.\n\n"; } } else |