aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-09 00:26:56 +0100
committerKim Alvefur <zash@zash.se>2019-11-09 00:26:56 +0100
commitf10cf81e372393d6b74a837e818f238a7249d66c (patch)
tree3652b3966fc9b4e1eefa84ffcb07f22442a766cb /util
parent829aaea2fd758250b0978c3dd04e1f310023b0ed (diff)
downloadprosody-f10cf81e372393d6b74a837e818f238a7249d66c.tar.gz
prosody-f10cf81e372393d6b74a837e818f238a7249d66c.zip
util.startup: Disable plugin installer path creation for now (see comments)
Diffstat (limited to 'util')
-rw-r--r--util/startup.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/startup.lua b/util/startup.lua
index c9d06109..8e6d89e6 100644
--- a/util/startup.lua
+++ b/util/startup.lua
@@ -240,7 +240,9 @@ end
function startup.setup_plugin_install_path()
local installer_plugin_path = config.get("*", "installer_plugin_path") or "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);
+ -- TODO Can probably move directory creation to the install command
require "lfs".mkdir(installer_plugin_path);
require"util.paths".complement_lua_path(installer_plugin_path);
-- luacheck: ignore 111
@@ -539,7 +541,7 @@ function startup.prosodyctl()
startup.force_console_logging();
startup.init_logging();
startup.setup_plugindir();
- startup.setup_plugin_install_path();
+ -- startup.setup_plugin_install_path();
startup.setup_datadir();
startup.chdir();
startup.read_version();
@@ -565,7 +567,7 @@ function startup.prosody()
startup.init_logging();
startup.load_libraries();
startup.setup_plugindir();
- startup.setup_plugin_install_path();
+ -- startup.setup_plugin_install_path();
startup.setup_datadir();
startup.chdir();
startup.add_global_prosody_functions();