From bec6a6112df97c71f5550ab980cc497df06cf017 Mon Sep 17 00:00:00 2001 From: Cody Carrell Date: Fri, 2 Apr 2021 22:45:56 -0400 Subject: [PATCH] Fix reading User.Gid from WINGS_GID over WINGS_UID --- config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 7f28d8f..8ffa295 100644 --- a/config/config.go +++ b/config/config.go @@ -395,7 +395,7 @@ func EnsurePterodactylUser() error { if sysName == "busybox" { _config.System.Username = system.FirstNotEmpty(os.Getenv("WINGS_USERNAME"), "pterodactyl") _config.System.User.Uid = system.MustInt(system.FirstNotEmpty(os.Getenv("WINGS_UID"), "988")) - _config.System.User.Gid = system.MustInt(system.FirstNotEmpty(os.Getenv("WINGS_UID"), "988")) + _config.System.User.Gid = system.MustInt(system.FirstNotEmpty(os.Getenv("WINGS_GID"), "988")) return nil } @@ -617,4 +617,4 @@ func getSystemName() (string, error) { return "", err } return release["ID"], nil -} \ No newline at end of file +}