Software /
code /
prosody
Changeset
13630:8228f5094f7a
util.startup: Rename credentials path variable too
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 18 Jan 2025 13:29:59 +0100 |
parents | 13629:23aef73f0cb0 |
children | 13631:0fe27632a837 |
files | core/configmanager.lua util/startup.lua |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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;