Comparison

util/prosodyctl/shell.lua @ 10873:813e632431e6

util.prosodyctl.shell: Correct check for --socket
author Kim Alvefur <zash@zash.se>
date Tue, 02 Jun 2020 09:07:29 +0200
parent 10871:e5dee71d0ebb
child 10874:98c535531450
comparison
equal deleted inserted replaced
10872:a3f3f42736f2 10873:813e632431e6
112 if stanza.name == "repl-result" then 112 if stanza.name == "repl-result" then
113 repl(client); 113 repl(client);
114 end 114 end
115 end); 115 end);
116 116
117 local socket_path = path.resolve_relative_path(prosody.paths.data, arg.socket or config.get("*", "admin_socket") or "prosody.sock"); 117 local socket_path = path.resolve_relative_path(prosody.paths.data, prosody.opts.socket or config.get("*", "admin_socket") or "prosody.sock");
118 local conn = connection(socket_path, client.listeners); 118 local conn = connection(socket_path, client.listeners);
119 local ok, err = conn:connect(); 119 local ok, err = conn:connect();
120 if not ok then 120 if not ok then
121 print("** Unable to connect to server - is it running? Is mod_admin_shell enabled?"); 121 print("** Unable to connect to server - is it running? Is mod_admin_shell enabled?");
122 print("** Connection error: "..err); 122 print("** Connection error: "..err);