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
commit934e6627ecf290b8428dea164e6c504623bee6f7 (patch)
treef281521168ef39d6a2adb621fca8c1f9673dac6b
parenteae8bd26c27278ea7a7b8bc015b93a3761750e89 (diff)
downloadprosody-934e6627ecf290b8428dea164e6c504623bee6f7.tar.gz
prosody-934e6627ecf290b8428dea164e6c504623bee6f7.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