Comparison

prosodyctl @ 13650:9a66b53a5076

prosodyctl: reload: Assume reload-via-socket if any arguments passed
author Matthew Wild <mwild1@gmail.com>
date Thu, 06 Feb 2025 14:47:45 +0000
parent 13649:d2969e163656
child 13651:b9d369f77121
comparison
equal deleted inserted replaced
13649:d2969e163656 13650:9a66b53a5076
514 table.insert(arg, 1, "module"); 514 table.insert(arg, 1, "module");
515 table.insert(arg, 2, "reload"); 515 table.insert(arg, 2, "reload");
516 return shell.shell(arg); 516 return shell.shell(arg);
517 end 517 end
518 return shell.shell({ "config", "reload" }); 518 return shell.shell({ "config", "reload" });
519 elseif arg[1] then
520 show_message("Admin socket not found - is it enabled and is Prosody running?");
521 return 1;
519 end 522 end
520 523
521 local ok, running = prosodyctl.isrunning(); 524 local ok, running = prosodyctl.isrunning();
522 if not ok then 525 if not ok then
523 show_message(error_messages[running]); 526 show_message(error_messages[running]);