util/startup.lua
changeset 10536 19ec384eb782
parent 10409 e7f5735f19e1
child 10603 4f655918fef1
equal deleted inserted replaced
10535:810abf34919a 10536:19ec384eb782
   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.");