Software /
code /
prosody
Changeset
10869:c91697b81349
util.prosodyctl.shell: Allow passing path to socket on command line
E.g. `prosodyctl shell --socket /path/to/prosody.scok`
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 01 Jun 2020 23:57:50 +0200 |
parents | 10868:fa06cf7059cd |
children | 10870:3f1889608f3e |
files | util/prosodyctl/shell.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/prosodyctl/shell.lua Mon Jun 01 23:53:03 2020 +0200 +++ b/util/prosodyctl/shell.lua Mon Jun 01 23:57:50 2020 +0200 @@ -114,7 +114,7 @@ end end); - local socket_path = path.resolve_relative_path(prosody.paths.data, config.get("*", "admin_socket") or "prosody.sock"); + local socket_path = path.resolve_relative_path(prosody.paths.data, arg.socket or config.get("*", "admin_socket") or "prosody.sock"); local conn = connection(socket_path, client.listeners); local ok, err = conn:connect(); if not ok then