Software / code / prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
| 8117:66d8f6b3c3ef | 8118:f8c52010bd37 |
|---|---|
| 894 -- Private key matches public key in certificate | 894 -- Private key matches public key in certificate |
| 895 end | 895 end |
| 896 end | 896 end |
| 897 if imported[1] then | 897 if imported[1] then |
| 898 show_message("Imported certificate and key for hosts "..table.concat(imported, ", ")); | 898 show_message("Imported certificate and key for hosts "..table.concat(imported, ", ")); |
| 899 else | |
| 900 show_warning("No certificates imported :("); | |
| 901 return 1; | |
| 899 end | 902 end |
| 900 end | 903 end |
| 901 | 904 |
| 902 function commands.cert(arg) | 905 function commands.cert(arg) |
| 903 if #arg >= 1 and arg[1] ~= "--help" then | 906 if #arg >= 1 and arg[1] ~= "--help" then |