diff options
author | Kim Alvefur <zash@zash.se> | 2017-04-22 19:12:51 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-04-22 19:12:51 +0200 |
commit | d40c43dffe69678eb1a63ac6f063b6b7ae8fdcec (patch) | |
tree | ec896a729044fb05e883f6f3993785ab19cb71fe | |
parent | e887b4bcb88ef38227e50751cf343c00a74e91f5 (diff) | |
download | prosody-d40c43dffe69678eb1a63ac6f063b6b7ae8fdcec.tar.gz prosody-d40c43dffe69678eb1a63ac6f063b6b7ae8fdcec.zip |
prosodyctl: Attempt to reload prosody after importing certificates
-rwxr-xr-x | prosodyctl | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |