Software / code / prosody
Comparison
prosodyctl @ 4158:14581c3f33bd
prosodyctl: Support for plugin_paths config option
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 22 Feb 2011 18:37:29 +0000 |
| parent | 4142:caa78589598f |
| child | 4167:9c60cc8dc142 |
comparison
equal
deleted
inserted
replaced
| 4157:1b5a8e071a80 | 4158:14581c3f33bd |
|---|---|
| 108 end | 108 end |
| 109 local original_logging_config = config.get("*", "core", "log"); | 109 local original_logging_config = config.get("*", "core", "log"); |
| 110 config.set("*", "core", "log", { { levels = { min="info" }, to = "console" } }); | 110 config.set("*", "core", "log", { { levels = { min="info" }, to = "console" } }); |
| 111 | 111 |
| 112 local data_path = config.get("*", "core", "data_path") or CFG_DATADIR or "data"; | 112 local data_path = config.get("*", "core", "data_path") or CFG_DATADIR or "data"; |
| 113 local custom_plugin_paths = config.get("*", "core", "plugin_paths"); | |
| 114 if custom_plugin_paths then | |
| 115 CFG_PLUGINDIR = table.concat(custom_plugin_paths, package.config:sub(3,3)); -- path1;path2;path3 | |
| 116 end | |
| 113 prosody.paths = { source = CFG_SOURCEDIR, config = CFG_CONFIGDIR, | 117 prosody.paths = { source = CFG_SOURCEDIR, config = CFG_CONFIGDIR, |
| 114 plugins = CFG_PLUGINDIR, data = data_path }; | 118 plugins = CFG_PLUGINDIR, data = data_path }; |
| 115 | 119 |
| 116 require "core.loggingmanager" | 120 require "core.loggingmanager" |
| 117 | 121 |