aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-22 19:12:04 +0200
committerKim Alvefur <zash@zash.se>2017-04-22 19:12:04 +0200
commit1cfa8feaec5b48d66f696a2e31aa29a20ca05704 (patch)
treef281521168ef39d6a2adb621fca8c1f9673dac6b
parent3b0dfa75d6af5f1e54737a0a6c6ab1440f273688 (diff)
downloadprosody-1cfa8feaec5b48d66f696a2e31aa29a20ca05704.tar.gz
prosody-1cfa8feaec5b48d66f696a2e31aa29a20ca05704.zip
prosodyctl: Return non-zero exit code from cert import if no certificates imported
-rwxr-xr-xprosodyctl3
1 files changed, 3 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index e2f71223..4b29c406 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -896,6 +896,9 @@ function cert_commands.import(arg)
end
if imported[1] then
show_message("Imported certificate and key for hosts "..table.concat(imported, ", "));
+ else
+ show_warning("No certificates imported :(");
+ return 1;
end
end