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:
@@ -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.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user