mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-22 04:27:19 +01:00
:(
This commit is contained in:
@@ -87,14 +87,12 @@ namespace Tgstation.Server.Host
|
||||
await proc.WaitForExitAsync();
|
||||
if(proc.ExitCode is not 0 || !int.TryParse(await proc.StandardOutput.ReadToEndAsync(), out var uid)) {
|
||||
Console.Error.WriteLine("Failed to obtain user id.");
|
||||
Environment.Exit(1);
|
||||
return;
|
||||
return 1;
|
||||
}
|
||||
if(uid is 0)
|
||||
{
|
||||
Console.Error.WriteLine("TGS is being run as root. This is not recommended and will prevent launching in a future version!");
|
||||
// Environment.Exit(1);
|
||||
// return;
|
||||
// return 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user