1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-11 08:05:56 +00:00

allow running as root in a container environment

This commit is contained in:
Andrew Dolgov
2022-02-17 17:32:02 +03:00
parent 079f6dfdd0
commit 89ef98e57e

View File

@@ -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.");
}