Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated port variable in config causes bug with entrypoint script #10

Open
Eric-Prokop opened this issue Jun 12, 2024 · 1 comment
Open

Comments

@Eric-Prokop
Copy link

The server config file contains the variable port two times, but in different ini sections, once in [General] and [MasterServer].

The entrypoint script parsing the environment can't distinguish between them, so both are replaced when setting TES3MP_SERVER_PORT, causing connection bugs.

printenv | grep 'TES3MP_SERVER_' | while read -r envvar

@GrimKriegor
Copy link
Member

Intriguing, only the first one should have been changed.

Regardless, a more sophisticated method for handling those envvar configs is being tested in https://github.com/TES3MP/server-container/tree/feature/runtime-ini-patching-no-deps

Syntax should go like TES3MP_SERVER_<section>_<variable>

Feel free to give it a spin, thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants