# HG changeset patch # User Kim Alvefur # Date 1737203399 -3600 # Node ID 8228f5094f7ad0be91fe6f7ec4d56530e4453fd1 # Parent 23aef73f0cb07ca0394fe9ece3088385f515c89b util.startup: Rename credentials path variable too diff -r 23aef73f0cb0 -r 8228f5094f7a core/configmanager.lua --- a/core/configmanager.lua Sat Jan 18 12:33:18 2025 +0100 +++ b/core/configmanager.lua Sat Jan 18 13:29:59 2025 +0100 @@ -361,8 +361,8 @@ env.FileLine = filereader(config_path, "*l"); env.FileLines = linereader(config_path); - if _G.prosody.paths.secrets then - env.Credential = filereader(_G.prosody.paths.secrets, "*a"); + if _G.prosody.paths.credentials then + env.Credential = filereader(_G.prosody.paths.credentials, "*a"); elseif _G.prosody.process_type == "prosody" then env.Credential = function() error("Credential() requires the $CREDENTIALS_DIRECTORY environment variable to be set", 2) end else diff -r 23aef73f0cb0 -r 8228f5094f7a util/startup.lua --- a/util/startup.lua Sat Jan 18 12:33:18 2025 +0100 +++ b/util/startup.lua Sat Jan 18 13:29:59 2025 +0100 @@ -271,7 +271,7 @@ config = CFG_CONFIGDIR or "."; plugins = CFG_PLUGINDIR or "plugins"; data = "data"; - secrets = os.getenv("CREDENTIALS_DIRECTORY"); + credentials = os.getenv("CREDENTIALS_DIRECTORY"); }; prosody.arg = _G.arg;