Commit Graph

56 Commits (0ec577b5dfed46586ff329e531bcc18a4cd5ec00)

Author SHA1 Message Date
Kim Alvefur 65bbfdb65b util.startup: Ensure prosody.paths are absolute (see #1430) 7 years ago
Kim Alvefur 64b86ad506 util.startup: Update config path (fixes #1430) 7 years ago
Kim Alvefur f6c25cbfee util.startup: Disable plugin installer path creation for now (see comments) 7 years ago
Kim Alvefur f8cd8190d5 util.startup: Split plugin installer path setup into a separate function 7 years ago
Jo?o Duarte 7a596299b4 util.startup: Changed the way util.paths.complement_lua_path was being accessed 7 years ago
Jo?o Duarte 6a485386c0 util.startup: Reorganized code at setup_plugindir 7 years ago
Jo?o Duarte 84da5cd3d7 util.startup: Now calls a function to complement lua's path/cpath 7 years ago
Jo?o Duarte fdbe6f4afe util.startup: setup_plugindir now also checks package.cpath for duplicates 7 years ago
Jo?o Duarte d317295e55 util.startup: Directly calling lfs.currentdir instead of storing it in a local variable 7 years ago
Jo?o Duarte dcbfef2fcf util.startup: Removed/rewrote comments at setup_plugindir 7 years ago
Jo?o Duarte 8cfebaa831 util.startupt: setup_plugindir now uses lfs.mkdir to check/create directories 7 years ago
Jo?o Duarte 9cf24d5024 util.startupt: I'm now using the resolve_relative_path function from util/paths at the setup_plugindir function 7 years ago
Jo?o Duarte 899ab776e5 util.startup: Improved how .set_plugindir updates prosody.paths.plugins, package.path and package.cpath 7 years ago
Jo?o Duarte aa6a7d9238 util.startup: .setup_plugindir now checks if the specified directory for custom plugins exists, and creates it if it doesn't 7 years ago
Jo?o Duarte b29dab1c1c util.startup: The .setup_plugindir function now correctly sets a default/specified path for custom plugins 7 years ago
Jo?o Duarte a0aa32c752 util.startup: Removed unnecessary if clause at startup.set_plugindir 7 years ago
Jo?o Duarte 8a516777e1 util.startup: Now it also loads default or configured paths to custom plugin directories and creates them 7 years ago
Kim Alvefur e2369a0bf6 util.startup: Always reload logging after config (fixes #1284) 8 years ago
Kim Alvefur 8dba7528d5 util.startup: Remove tostring call from logging 7 years ago
Matthew Wild 644e76a64f util.startup: Set flag when config fully loaded 8 years ago
Kim Alvefur 39d4b6f6af util.startup: Add a comment marking some compat code 8 years ago
Matthew Wild aebd5479d2 util.startup: Don't initialize global protection for prosodyctl, for now 8 years ago
Kim Alvefur b37d44f502 util.startup: Force console logging before initializing logging (see 2fdeb979cc7c) 8 years ago
Matthew Wild 5a7d12cdf0 util.startup: Initialize logging immediately after configuration is read (which is how it used to work) 8 years ago
Kim Alvefur 5cf7235594 util.startup/prosodyctl: Delay enabling global protection until last (silences warning about CFG_PLUGINDIR) 8 years ago
Kim Alvefur 0966771990 util.startup: Fix traceback due to both plugin path becoming nil if plugin_paths is unset 8 years ago
Kim Alvefur b1235c60a7 Fix spelling throughout the codebase [codespell] 8 years ago
Kim Alvefur b0be3682af util.startup: Set up event hooks for reloading logging here instead of in loggingmanager to simplify startup dependencies 8 years ago
Kim Alvefur d723c0752e util.startup: Initialize prosody.log / _G.log here instead of in loggingmanager to reduce dependencies 8 years ago
Kim Alvefur 7d46eacc39 util.startup: Initialize logging earlier, so that messages from eg net.server are shown 8 years ago
Kim Alvefur 585601be4b util.startup: Access the hosts table via the prosody global for consistency 8 years ago
Kim Alvefur cd6194c0d8 util.startup: Use own logger instead of the possibly not available yet _G.log 8 years ago
Kim Alvefur 7c95d6006b util.startup: Remove luacheck directive for ignoring use of _G.log which might not exist until loggingmanager has been loaded 8 years ago
Kim Alvefur a1dfe2d935 util.startup: Initialize the 'prosody' global earlier (various things needs the global util.events instance) 8 years ago
Kim Alvefur 13513b9679 util.startup: Factor out processing of plugin and data paths into a separate functions 8 years ago
Kim Alvefur 668062a467 configmanager: Move firing of the 'config-reloaded' event into util.startup (fixes #1117) 8 years ago
Kim Alvefur 0f50f6fbbf util.startup: Read version for prosodyctl (restores version in 'about' command) 8 years ago
Matthew Wild 6105bc5d34 prosody, util.startup: Switch from async.once() to long-lived thread, to avoid GC 8 years ago
Matthew Wild adc3b72672 util.startup: Expose make_host() function 8 years ago
Matthew Wild d93d78a56b util.startup: Expose user switching information via prosody global object 8 years ago
Matthew Wild 7f6635523c util.startup: Fix variable usage [luacheck] 8 years ago
Matthew Wild 944d37eaa9 util.startup: Move original_logging_config to a local variable 8 years ago
Matthew Wild 218854117a util.startup: Restore user switching 8 years ago
Matthew Wild fd412010f4 util.startup: Fix chdir() to use correct path variable 8 years ago
Matthew Wild 791c1f87fd util.startup: Execute startup routine inside async context 8 years ago
Kim Alvefur d0d92da7fa util.startup: Remove unused loop variable [luacheck] 8 years ago
Kim Alvefur 877efb6230 util.startup: Ignore various globals being read and written as part of startup [luacheck] 8 years ago
Kim Alvefur 34be60a40b util.startup: Trim trailing whitespace [luacheck] 8 years ago
Matthew Wild a4816b74d3 util.startup: Oops, uncomment accidentally-commented code 8 years ago
Matthew Wild 102268b8e6 prosody, prosodyctl, util.startup: Finally factor out startup-related and common code into a separate module 8 years ago