summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index a99b248b3..db6602bae 100755
--- a/configure
+++ b/configure
@@ -747,14 +747,14 @@ 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() or $failed = 1;
- if (!$failed) {
+ $failed = make_gnutls_cert();
+ if ($failed) {
+ print "\n\033[1;32mCertificate generation failed!\033[0m\n\n";
+ } else {
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 {