prosody: Add config option plugin_path to allow overriding plugin directories.
authorWaqas Hussain <waqas20@gmail.com>
Thu, 20 Jan 2011 23:36:31 +0000 (04:36 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Thu, 20 Jan 2011 23:36:31 +0000 (04:36 +0500)
prosody

diff --git a/prosody b/prosody
index 8dcb0096de6f8457043b10213f13eb8ca57165e3..48977c30ce5a7d69620c5a2582d9662c3aedd2a1 100755 (executable)
--- a/prosody
+++ b/prosody
@@ -184,6 +184,7 @@ function init_global_state()
        prosody.hosts = hosts;
        
        local data_path = config.get("*", "core", "data_path") or CFG_DATADIR or "data";
+       CFG_PLUGINDIR = config.get("*", "core", "plugin_path") or CFG_PLUGINDIR or "plugins"
        prosody.paths = { source = CFG_SOURCEDIR, config = CFG_CONFIGDIR, 
                          plugins = CFG_PLUGINDIR, data = data_path };