diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-02-22 18:37:29 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-02-22 18:37:29 +0000 |
commit | 731c29b5ac9ec0d3ff3e920863f60e05675dd62f (patch) | |
tree | 50abf7c449afe8a8301597adf808b45ffb34cd29 | |
parent | e3c845abcfc862b5ff358a3ae9fbf6be2cb20454 (diff) | |
download | prosody-731c29b5ac9ec0d3ff3e920863f60e05675dd62f.tar.gz prosody-731c29b5ac9ec0d3ff3e920863f60e05675dd62f.zip |
prosodyctl: Support for plugin_paths config option
-rwxr-xr-x | prosodyctl | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 }; |