Software /
code /
prosody
Diff
prosodyctl @ 8118:f8c52010bd37
prosodyctl: Return non-zero exit code from cert import if no certificates imported
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Apr 2017 19:12:04 +0200 |
parent | 8117:66d8f6b3c3ef |
child | 8119:94a1fdaf12d1 |
line wrap: on
line diff
--- a/prosodyctl Sat Apr 22 19:11:26 2017 +0200 +++ b/prosodyctl Sat Apr 22 19:12:04 2017 +0200 @@ -896,6 +896,9 @@ 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