mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
util.startup: Don't use not yet existent shutdown procedure when started as root (thanks SigmaTel71)
This commit is contained in:
parent
e76620ad10
commit
78be92ab70
1 changed files with 1 additions and 1 deletions
|
@ -694,7 +694,7 @@ function startup.check_user()
|
|||
if pposix.getuid() == 0 and not config.get("*", "run_as_root") then
|
||||
log("error", "Danger, Will Robinson! Prosody doesn't need to be run as root, so don't do it!");
|
||||
log("error", "For more information on running Prosody as root, see https://prosody.im/doc/root");
|
||||
prosody.shutdown("Refusing to run as root", 1);
|
||||
os.exit(1); -- Refusing to run as root
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue