Comparison

plugins/mod_posix.lua @ 7359:a5a080c12c96

Update every link to the documentation to use HTTPS
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 16 Apr 2016 21:08:05 +0100
parent 6875:12d68f7b1be0
child 7735:1502ec4f3cbe
comparison
equal deleted inserted replaced
7358:d0390bc9c5d1 7359:a5a080c12c96
57 if not prosody.start_time then -- server-starting 57 if not prosody.start_time then -- server-starting
58 local suid = module:get_option("setuid"); 58 local suid = module:get_option("setuid");
59 if not suid or suid == 0 or suid == "root" then 59 if not suid or suid == 0 or suid == "root" then
60 if pposix.getuid() == 0 and not module:get_option("run_as_root") then 60 if pposix.getuid() == 0 and not module:get_option("run_as_root") then
61 module:log("error", "Danger, Will Robinson! Prosody doesn't need to be run as root, so don't do it!"); 61 module:log("error", "Danger, Will Robinson! Prosody doesn't need to be run as root, so don't do it!");
62 module:log("error", "For more information on running Prosody as root, see http://prosody.im/doc/root"); 62 module:log("error", "For more information on running Prosody as root, see https://prosody.im/doc/root");
63 prosody.shutdown("Refusing to run as root"); 63 prosody.shutdown("Refusing to run as root");
64 end 64 end
65 end 65 end
66 end 66 end
67 67