diff options
author | Kim Alvefur <zash@zash.se> | 2017-04-22 19:12:04 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-04-22 19:12:04 +0200 |
commit | 1cfa8feaec5b48d66f696a2e31aa29a20ca05704 (patch) | |
tree | f281521168ef39d6a2adb621fca8c1f9673dac6b /prosodyctl | |
parent | 3b0dfa75d6af5f1e54737a0a6c6ab1440f273688 (diff) | |
download | prosody-1cfa8feaec5b48d66f696a2e31aa29a20ca05704.tar.gz prosody-1cfa8feaec5b48d66f696a2e31aa29a20ca05704.zip |
prosodyctl: Return non-zero exit code from cert import if no certificates imported
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |