From 89ef98e57e37104e8c45b515198f011594301ac9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 17 Feb 2022 17:32:02 +0300 Subject: allow running as root in a container environment --- classes/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/config.php') diff --git a/classes/config.php b/classes/config.php index 2f151566f..39f243d32 100644 --- a/classes/config.php +++ b/classes/config.php @@ -510,7 +510,7 @@ class Config { array_push($errors, "Please enable at least one authentication module via PLUGINS"); } - if (function_exists('posix_getuid') && posix_getuid() == 0) { + if (function_exists('posix_getuid') && posix_getuid() == 0 && !getenv("container")) { array_push($errors, "Please don't run this script as root."); } -- cgit v1.2.3