aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorJoão Duarte <jvsDuarte08@gmail.com>2019-07-24 10:48:20 -0700
committerJoão Duarte <jvsDuarte08@gmail.com>2019-07-24 10:48:20 -0700
commitf1a27b4554175c04fbd3c5ffedbc5b9e6ad40967 (patch)
tree6ae8c00a0069aafd1d90460050a801f42355c169 /prosodyctl
parentcf695f88f1bc15c7ccb69c65aee555579ad80da8 (diff)
downloadprosody-f1a27b4554175c04fbd3c5ffedbc5b9e6ad40967.tar.gz
prosody-f1a27b4554175c04fbd3c5ffedbc5b9e6ad40967.zip
prosodyctl: Updated the list command, to use the new directory for custom plugins
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl7
1 files changed, 6 insertions, 1 deletions
diff --git a/prosodyctl b/prosodyctl
index 33f58fc1..777b2c30 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -144,6 +144,11 @@ function commands.list(arg)
show_usage([[list]], [[Shows installed rocks]]);
return 1;
end
+ -- I'm considering that we are using just one path to custom plugins, and it is the first in prosody.paths.plugins, for now
+ for path in prosody.paths.plugins:gmatch("[^;]+") do
+ installer_plugin_path = path
+ break
+ end
local flag = "--tree="
-- I'm considering this optional flag comes first
if arg[1] and arg[1]:sub(1, #flag) == flag then
@@ -151,7 +156,7 @@ function commands.list(arg)
os.execute("luarocks list --tree='"..dir.."'")
return 0;
else
- os.execute("luarocks list --tree="..prosody.paths.plugins)
+ os.execute("luarocks list --tree="..installer_plugin_path)
return 0;
end
end