Software /
code /
prosody
Changeset
11866:515a89dee6ae
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)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 23 Oct 2021 22:24:59 +0200 |
parents | 11865:77bbbd4263d7 |
children | 11867:bb20cfd4884f |
files | util/startup.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/startup.lua Sat Oct 23 13:32:01 2021 +0200 +++ b/util/startup.lua Sat Oct 23 22:24:59 2021 +0200 @@ -487,7 +487,7 @@ 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