Repository navigation
added configuration for game duration, server name, map voting and Web interface through env vars - #24
added configuration for game duration, server name, map voting and Web interface through env vars#24ppaulis wants to merge 0 commit into
Conversation
|
Hi @PhasecoreX ! Just wanted to know if you had the time to take a look at this? :-) |
|
Sorry about that! I have looked at it now. Server name, web interface, and admin password I think are good. Voting settings are good too, however I think there should be a way to disable it. Currently if they set I also don't really like the |
|
@PhasecoreX Fixed the map voting and removed the game duration env var 👍 I'll keep the game duration in my own branch then :-) |
| if [ "$ENABLE_WEB_INTERFACE" = "1" ] && [ -n "${ADMIN_PASSWORD:-}" ]; then | ||
| sed -i '/\[UWeb.WebServer\]/,/^$/s/bEnabled=False/bEnabled=True/' /data/config/UT2004.ini | ||
| sed -i "/\[Engine.AccessControl\]/,/^$/s/^AdminPassword=.*/AdminPassword=${ADMIN_PASSWORD}/" /data/config/UT2004.ini | ||
| fi |
There was a problem hiding this comment.
Add elif [ "$ENABLE_WEB_INTERFACE" = "0" ]; then so that we can disable the web interface as well. Don't need to check the admin password when disabling.
|
Sorry, forgot about disabling the web interface. Just add that and then we should be good! |
|
I'm also thinking that instead of "1" and "0", we use "true" and "false". We are already using "true" in this image for the |
|
@PhasecoreX Replaced by #33 |
@PhasecoreX
This PR adds environment variables for game duration, server name, map voting and to enable the web interface of the Server.
Map Voting suggests maps from the game modes : Deathmatch, Domination, CTF, Bombing Run, Assault and Onslaught. Variations with Instagib have also been added.
Best regards,
Pascal