mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 21:16:52 +01:00
Merge branch 'noroot' of https://github.com/tgstation/tgstation-server into noroot
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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"/>.
|
||||
|
||||
Reference in New Issue
Block a user