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 | 934e6627ecf290b8428dea164e6c504623bee6f7 (patch) | |
tree | f281521168ef39d6a2adb621fca8c1f9673dac6b /prosodyctl | |
parent | eae8bd26c27278ea7a7b8bc015b93a3761750e89 (diff) | |
download | prosody-934e6627ecf290b8428dea164e6c504623bee6f7.tar.gz prosody-934e6627ecf290b8428dea164e6c504623bee6f7.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 |