equal
deleted
inserted
replaced
446 if not prosody.switched_user then |
446 if not prosody.switched_user then |
447 -- Boo! |
447 -- Boo! |
448 print("Warning: Couldn't switch to Prosody user/group '"..tostring(desired_user).."'/'"..tostring(desired_group).."': "..tostring(err)); |
448 print("Warning: Couldn't switch to Prosody user/group '"..tostring(desired_user).."'/'"..tostring(desired_group).."': "..tostring(err)); |
449 else |
449 else |
450 -- Make sure the Prosody user can read the config |
450 -- Make sure the Prosody user can read the config |
451 local conf, err, errno = io.open(prosody.config_file); |
451 local conf, err, errno = io.open(prosody.config_file); --luacheck: ignore 211/errno |
452 if conf then |
452 if conf then |
453 conf:close(); |
453 conf:close(); |
454 else |
454 else |
455 print("The config file is not readable by the '"..desired_user.."' user."); |
455 print("The config file is not readable by the '"..desired_user.."' user."); |
456 print("Prosody will not be able to read it."); |
456 print("Prosody will not be able to read it."); |