Fix reading User.Gid from WINGS_GID over WINGS_UID
This commit is contained in:
parent
31127620e5
commit
bec6a6112d
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user