summaryrefslogtreecommitdiff
path: root/classes/config.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-02-17 17:32:02 +0300
committerAndrew Dolgov <[email protected]>2022-02-17 17:32:02 +0300
commit89ef98e57e37104e8c45b515198f011594301ac9 (patch)
tree0897841fc88651eada0311d0ac78102de0ebc73f /classes/config.php
parent079f6dfdd0a26e9ba68aff6f05072d1720f6a6af (diff)
allow running as root in a container environment
Diffstat (limited to 'classes/config.php')
-rw-r--r--classes/config.php2
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.");
}