diff options
author | Andrew Dolgov <[email protected]> | 2022-02-17 17:32:02 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-02-17 17:32:02 +0300 |
commit | 89ef98e57e37104e8c45b515198f011594301ac9 (patch) | |
tree | 0897841fc88651eada0311d0ac78102de0ebc73f | |
parent | 079f6dfdd0a26e9ba68aff6f05072d1720f6a6af (diff) |
allow running as root in a container environment
-rw-r--r-- | classes/config.php | 2 |
1 files changed, 1 insertions, 1 deletions
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."); } |