This commit is contained in:
ZephyrTFA
2024-08-19 13:23:46 -04:00
3 changed files with 3 additions and 5 deletions
@@ -686,7 +686,7 @@ namespace Tgstation.Server.Host.Components
if (!platformIdentifier.IsWindows && systemIdentity.IsSuperUser && !internalConfiguration.UsingDocker)
{
logger.LogWarning("TGS is being run as the root account. This is not recommended and may prevent launch in a future version.");
logger.LogWarning("TGS is being run as the root account. This is not recommended.");
}
}
+1 -3
View File
@@ -11,8 +11,6 @@ using Tgstation.Server.Host.Core;
using Tgstation.Server.Host.Properties;
using Tgstation.Server.Host.System;
using Process = System.Diagnostics.Process;
namespace Tgstation.Server.Host
{
/// <summary>
@@ -42,7 +40,7 @@ namespace Tgstation.Server.Host
/// Entrypoint for the <see cref="Program"/>.
/// </summary>
/// <param name="args">The command line arguments.</param>
/// <returns>A <see cref="Task"/> resulting in the <see cref="Process.ExitCode"/>.</returns>
/// <returns>A <see cref="Task"/> resulting in the <see cref="global::System.Diagnostics.Process.ExitCode"/>.</returns>
public static async Task<int> Main(string[] args)
{
// first arg is 100% always the update path, starting it otherwise is solely for debugging purposes
@@ -25,7 +25,7 @@ namespace Tgstation.Server.Host.Security
public bool CanCreateSymlinks => IsSuperUser;
/// <inheritdoc />
public bool IsSuperUser => IsSuperUser;
public bool IsSuperUser => isAdmin ?? throw new NotSupportedException();
/// <summary>
/// The <see cref="WindowsIdentity"/> for the <see cref="WindowsSystemIdentity"/>.