This commit is contained in:
spiral 2022-06-14 14:41:32 -04:00
parent c4726f358b
commit 13efdbee83
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E

View File

@ -21,7 +21,7 @@ public class Init
private static async Task Main(string[] args)
{
// set cluster config from Nomad node index env variable
if (Environment.GetEnvironmentVariable("NOMAD_NODE_INDEX") is {} nodeIndex)
if (Environment.GetEnvironmentVariable("NOMAD_ALLOC_INDEX") is { } nodeIndex)
Environment.SetEnvironmentVariable("PluralKit__Bot__Cluster__NodeName", $"pluralkit-{nodeIndex}");
// Load configuration and run global init stuff