aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-02-22 18:37:29 +0000
committerMatthew Wild <mwild1@gmail.com>2011-02-22 18:37:29 +0000
commit4bdd030639e8e2323591aef8e7abcf27885ebc8e (patch)
tree50abf7c449afe8a8301597adf808b45ffb34cd29
parent5d21de7e3d83854e02a42345685e6b97eaf9a945 (diff)
downloadprosody-4bdd030639e8e2323591aef8e7abcf27885ebc8e.tar.gz
prosody-4bdd030639e8e2323591aef8e7abcf27885ebc8e.zip
prosodyctl: Support for plugin_paths config option
-rwxr-xr-xprosodyctl4
1 files changed, 4 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index 02f2e136..2005a3ed 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -110,6 +110,10 @@ local original_logging_config = config.get("*", "core", "log");
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 };