# HG changeset patch # User Kim Alvefur # Date 1591046790 -7200 # Node ID 561138169983264fe24dc4beb570cdfbfd40e5c5 # Parent 5265f7fe11dd636c10c3a252d2f90348d2ec5b10 util.prosodyctl.shell: Join socket path with current data directory Don't hardcode socket path as it happens to be in a source checkout. Hold on, it should use the same config option as the module! diff -r 5265f7fe11dd -r 561138169983 util/prosodyctl/shell.lua --- a/util/prosodyctl/shell.lua Mon Jun 01 23:17:20 2020 +0200 +++ b/util/prosodyctl/shell.lua Mon Jun 01 23:26:30 2020 +0200 @@ -8,6 +8,7 @@ local server = require "net.server"; local st = require "util.stanza"; +local path = require "util.paths"; local have_readline, readline = pcall(require, "readline"); @@ -112,7 +113,8 @@ end end); - local conn = connection("data/prosody.sock", client.listeners); + local socket_path = path.join(prosody.paths.data, "prosody.sock"); + local conn = connection(socket_path, client.listeners); local ok, err = conn:connect(); if not ok then print("** Unable to connect to server - is it running? Is mod_admin_shell enabled?");