aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-22 19:12:51 +0200
committerKim Alvefur <zash@zash.se>2017-04-22 19:12:51 +0200
commit04abad10a7f83c64a2bafdcb2888e9cad815f47d (patch)
treeec896a729044fb05e883f6f3993785ab19cb71fe
parentdbb0ad8e7ed9dd71011d0c5f5203781cdf9566ad (diff)
downloadprosody-04abad10a7f83c64a2bafdcb2888e9cad815f47d.tar.gz
prosody-04abad10a7f83c64a2bafdcb2888e9cad815f47d.zip
prosodyctl: Attempt to reload prosody after importing certificates
-rwxr-xr-xprosodyctl4
1 files changed, 4 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index bee90665..dcc98a79 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -897,6 +897,10 @@ function cert_commands.import(arg)
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;