plugins/mod_posix.lua
changeset 8124 a33a87f13155
parent 8018 ecb110f45c92
parent 8119 76ac8b617402
child 8171 45be94611593
--- a/plugins/mod_posix.lua	Fri Apr 21 15:22:17 2017 +0200
+++ b/plugins/mod_posix.lua	Mon Apr 24 14:19:49 2017 +0200
@@ -57,7 +57,7 @@
 if not prosody.start_time then -- server-starting
 	local suid = module:get_option("setuid");
 	if not suid or suid == 0 or suid == "root" then
-		if pposix.getuid() == 0 and not module:get_option("run_as_root") then
+		if pposix.getuid() == 0 and not module:get_option_boolean("run_as_root") then
 			module:log("error", "Danger, Will Robinson! Prosody doesn't need to be run as root, so don't do it!");
 			module:log("error", "For more information on running Prosody as root, see https://prosody.im/doc/root");
 			prosody.shutdown("Refusing to run as root");