Software /
code /
prosody
Changeset
4158:14581c3f33bd
prosodyctl: Support for plugin_paths config option
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 22 Feb 2011 18:37:29 +0000 |
parents | 4157:1b5a8e071a80 |
children | 4159:52eaa2590bfb |
files | prosodyctl |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/prosodyctl Tue Feb 22 18:29:35 2011 +0000 +++ b/prosodyctl Tue Feb 22 18:37:29 2011 +0000 @@ -110,6 +110,10 @@ config.set("*", "core", "log", { { levels = { min="info" }, to = "console" } }); local data_path = config.get("*", "core", "data_path") or CFG_DATADIR or "data"; +local custom_plugin_paths = config.get("*", "core", "plugin_paths"); +if custom_plugin_paths then + CFG_PLUGINDIR = table.concat(custom_plugin_paths, package.config:sub(3,3)); -- path1;path2;path3 +end prosody.paths = { source = CFG_SOURCEDIR, config = CFG_CONFIGDIR, plugins = CFG_PLUGINDIR, data = data_path };