Changeset

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
parents 8119:94a1fdaf12d1
children 8121:a33a87f13155 8122:e56a90168890
files prosodyctl
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/prosodyctl	Sat Apr 22 19:12:26 2017 +0200
+++ b/prosodyctl	Sat Apr 22 19:12:51 2017 +0200
@@ -897,6 +897,10 @@
 	end
 	if imported[1] then
 		show_message("Imported certificate and key for hosts "..table.concat(imported, ", "));
+		local ok, err = prosodyctl.reload();
+		if not ok and err ~= "not-running" then
+			show_message(error_messages[err]);
+		end
 	else
 		show_warning("No certificates imported :(");
 		return 1;