This commit is contained in:
ZephyrTFA
2024-08-18 04:20:48 -04:00
parent e070306b09
commit bc3cff8151
+2 -4
View File
@@ -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;
}
}