aboutsummaryrefslogtreecommitdiffstats
path: root/util/startup.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-10-05 21:43:47 +0200
committerKim Alvefur <zash@zash.se>2020-10-05 21:43:47 +0200
commite9c3e1dedcb316b94764ecf0827f2c86998ade04 (patch)
treec194c9d5ce1999bed3ba58e15606819478f90406 /util/startup.lua
parentef24d8cd72873a4cb0e222bd8374551925da3eb9 (diff)
downloadprosody-e9c3e1dedcb316b94764ecf0827f2c86998ade04.tar.gz
prosody-e9c3e1dedcb316b94764ecf0827f2c86998ade04.zip
util.startup: Put 'installer_plugin_path' under data directory by default
Fixes issue where it ends up creating this in $PWD, which might be ~prosody, ~you or /, depending on how it's invoked.
Diffstat (limited to 'util/startup.lua')
-rw-r--r--util/startup.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/startup.lua b/util/startup.lua
index a8d8594c..339a11dc 100644
--- a/util/startup.lua
+++ b/util/startup.lua
@@ -260,7 +260,7 @@ function startup.setup_plugindir()
end
function startup.setup_plugin_install_path()
- local installer_plugin_path = config.get("*", "installer_plugin_path") or "custom_plugins";
+ local installer_plugin_path = config.get("*", "installer_plugin_path") or CFG_DATADIR.."/custom_plugins";
local path_sep = package.config:sub(3,3);
-- TODO Figure out what this should be relative to, because CWD could be anywhere
installer_plugin_path = config.resolve_relative_path(require "lfs".currentdir(), installer_plugin_path);