GameServerManagers / LinuxGSM-Docker

The Official LinuxGSM Docker image (experimental)
https://linuxgsm.com
MIT License
168 stars 73 forks source link

Use the executable created by linuxgsm #74

Open PJGame841 opened 2 years ago

PJGame841 commented 2 years ago

When the linuxgsm creates the game server executable file, the entrypoint is assuming $GAMESERVER is the name of the exec. Or if the exec has been created before but is not executable (by the touch command) the linuxgsm will install a new instance (which have "-2" added to its name) but the script doesn't use this new name. So I just did a grep to get the new file name, and then replace the GAMESERVER env variable. This new value is then used to install, update and start the server.