From 731c29b5ac9ec0d3ff3e920863f60e05675dd62f Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 22 Feb 2011 18:37:29 +0000 Subject: prosodyctl: Support for plugin_paths config option --- prosodyctl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'prosodyctl') 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 }; -- cgit v1.2.3