# HG changeset patch # User Kim Alvefur # Date 1492881171 -7200 # Node ID 3c5f0cb4381ab1f65e95938c9073f114c3ab213c # Parent 94a1fdaf12d1372560a51577bc9608441e6a9fb0 prosodyctl: Attempt to reload prosody after importing certificates diff -r 94a1fdaf12d1 -r 3c5f0cb4381a prosodyctl --- 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;