Comparison

prosodyctl @ 8120:3c5f0cb4381a

prosodyctl: Attempt to reload prosody after importing certificates
author Kim Alvefur <zash@zash.se>
date Sat, 22 Apr 2017 19:12:51 +0200
parent 8119:94a1fdaf12d1
child 8121:a33a87f13155
child 8122:e56a90168890
comparison
equal deleted inserted replaced
8119:94a1fdaf12d1 8120:3c5f0cb4381a
895 -- Private key matches public key in certificate 895 -- Private key matches public key in certificate
896 end 896 end
897 end 897 end
898 if imported[1] then 898 if imported[1] then
899 show_message("Imported certificate and key for hosts "..table.concat(imported, ", ")); 899 show_message("Imported certificate and key for hosts "..table.concat(imported, ", "));
900 local ok, err = prosodyctl.reload();
901 if not ok and err ~= "not-running" then
902 show_message(error_messages[err]);
903 end
900 else 904 else
901 show_warning("No certificates imported :("); 905 show_warning("No certificates imported :(");
902 return 1; 906 return 1;
903 end 907 end
904 end 908 end