diff --git a/src/Tgstation.Server.Host/Components/InstanceManager.cs b/src/Tgstation.Server.Host/Components/InstanceManager.cs index 756d4b726c..5f6a101260 100644 --- a/src/Tgstation.Server.Host/Components/InstanceManager.cs +++ b/src/Tgstation.Server.Host/Components/InstanceManager.cs @@ -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."); } } diff --git a/src/Tgstation.Server.Host/Program.cs b/src/Tgstation.Server.Host/Program.cs index 47988e4d1c..b23633b7df 100644 --- a/src/Tgstation.Server.Host/Program.cs +++ b/src/Tgstation.Server.Host/Program.cs @@ -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 { /// @@ -42,7 +40,7 @@ namespace Tgstation.Server.Host /// Entrypoint for the . /// /// The command line arguments. - /// A resulting in the . + /// A resulting in the . public static async Task Main(string[] args) { // first arg is 100% always the update path, starting it otherwise is solely for debugging purposes diff --git a/src/Tgstation.Server.Host/Security/WindowsSystemIdentity.cs b/src/Tgstation.Server.Host/Security/WindowsSystemIdentity.cs index 486d8d795c..609f33d2a2 100644 --- a/src/Tgstation.Server.Host/Security/WindowsSystemIdentity.cs +++ b/src/Tgstation.Server.Host/Security/WindowsSystemIdentity.cs @@ -25,7 +25,7 @@ namespace Tgstation.Server.Host.Security public bool CanCreateSymlinks => IsSuperUser; /// - public bool IsSuperUser => IsSuperUser; + public bool IsSuperUser => isAdmin ?? throw new NotSupportedException(); /// /// The for the .