Add GAMESPY_PORT environment variable
Some checks failed
Build branch / build-all (push) Failing after 17s
CodeQL / Analyze (push) Has been cancelled

This commit is contained in:
smallmodel 2025-03-01 00:09:29 +01:00
parent c1c70a53be
commit 70f6ede7b8
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
2 changed files with 2 additions and 1 deletions

View file

@ -38,6 +38,7 @@ RUN useradd -m openmohaa
USER openmohaa USER openmohaa
ENV GAME_PORT=12203 ENV GAME_PORT=12203
ENV GAMESPY_PORT=12300
COPY "entrypoint.sh" "/usr/local/bin/entrypoint.sh" COPY "entrypoint.sh" "/usr/local/bin/entrypoint.sh"
WORKDIR "/usr/local/share/mohaa" WORKDIR "/usr/local/share/mohaa"

View file

@ -2,4 +2,4 @@
# It's amazing that with Docker, one can't put environment variables in the array of the ENTRYPOINT command # It's amazing that with Docker, one can't put environment variables in the array of the ENTRYPOINT command
/usr/local/games/openmohaa/lib/openmohaa/omohaaded +set fs_homepath home +set dedicated 2 +set net_port $GAME_PORT:-12203 $@ /usr/local/games/openmohaa/lib/openmohaa/omohaaded +set fs_homepath home +set dedicated 2 +set net_port $GAME_PORT:-12203 +set net_gamespy_port $GAMESPY_PORT:-12300 $@