aboutsummaryrefslogtreecommitdiffstats
path: root/util/startup.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-10-23 22:24:59 +0200
committerKim Alvefur <zash@zash.se>2021-10-23 22:24:59 +0200
commitc5de2a9d22f1bd14eb56c2fb0e5bfc09b3451538 (patch)
tree6db6787a2b0b275f5e6e16e105be29111b093806 /util/startup.lua
parent092875aaecc5722274755bbcf4a35a77a86a538f (diff)
downloadprosody-c5de2a9d22f1bd14eb56c2fb0e5bfc09b3451538.tar.gz
prosody-c5de2a9d22f1bd14eb56c2fb0e5bfc09b3451538.zip
util.startup: Skip config readability check in migrator (thanks eTaurus)
This field is empty for reasons when invoked by prosody-migrator, which threw an error: > bad argument #1 to 'open' (string expected, got nil)
Diffstat (limited to 'util/startup.lua')
-rw-r--r--util/startup.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/startup.lua b/util/startup.lua
index 5e3bba7b..b4dc6095 100644
--- a/util/startup.lua
+++ b/util/startup.lua
@@ -487,7 +487,7 @@ function startup.switch_user()
if not prosody.switched_user then
-- Boo!
print("Warning: Couldn't switch to Prosody user/group '"..tostring(desired_user).."'/'"..tostring(desired_group).."': "..tostring(err));
- else
+ elseif prosody.config_file then
-- Make sure the Prosody user can read the config
local conf, err, errno = io.open(prosody.config_file); --luacheck: ignore 211/errno
if conf then