mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
core: Add option to disable root privileges warning (#15264)
This commit is contained in:
@@ -274,7 +274,7 @@ namespace Jackett.Server.Services
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (Environment.UserName == "root")
|
if (Environment.UserName == "root" && (!bool.TryParse(Environment.GetEnvironmentVariable("DisableRootWarning"), out var disableRootWarning) || !disableRootWarning))
|
||||||
{
|
{
|
||||||
var notice = "Jackett is running with root privileges. You should run Jackett as an unprivileged user.";
|
var notice = "Jackett is running with root privileges. You should run Jackett as an unprivileged user.";
|
||||||
notices.Add(notice);
|
notices.Add(notice);
|
||||||
|
Reference in New Issue
Block a user