prosodyctl: reload: Assume reload-via-socket if any arguments passed

This commit is contained in:
Matthew Wild 2025-02-06 14:47:45 +00:00
parent 24d50902bd
commit 08d69fb759

View file

@ -516,6 +516,9 @@ function commands.reload(arg)
return shell.shell(arg); return shell.shell(arg);
end end
return shell.shell({ "config", "reload" }); return shell.shell({ "config", "reload" });
elseif arg[1] then
show_message("Admin socket not found - is it enabled and is Prosody running?");
return 1;
end end
local ok, running = prosodyctl.isrunning(); local ok, running = prosodyctl.isrunning();