# HG changeset patch # User Kim Alvefur # Date 1601927027 -7200 # Node ID e6c4975a90173f7dba155f1ed514d7912b937519 # Parent d0d3e25b7300ce5b942eafd7671bae47c79c272e 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. diff -r d0d3e25b7300 -r e6c4975a9017 util/startup.lua --- a/util/startup.lua Mon Oct 05 21:23:39 2020 +0200 +++ b/util/startup.lua Mon Oct 05 21:43:47 2020 +0200 @@ -260,7 +260,7 @@ 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);