PhasecoreX / docker-ut2004-server

Docker image for a UT2004 server, running as a non-root user
GNU General Public License v3.0
31 stars 9 forks source link

UT2004.ini keeps getting overwritten! #23

Open freedbygrace opened 1 month ago

freedbygrace commented 1 month ago

Hey there, I have just got done developing a docker compose file that uses your UT2K4 server container, along with a NGINX container for redirect server, and a cloud9 web based ide for text editing the UT2K4 config files without having to SFTP, upload, download etc. It all works nice! After that, you simply add reverse proxy to expose the UT2K4 web admin, along with the redirect server, and voila!

All your scripts inside here are super nice! Honestly, thank you for doing this!

Now to the issue, it certainly could be me, but for some reason, even when I live edit the config using Cloud9, it immediately saves the file and then prompts me that the file has been updated. Once I accept the updates, I can clearly see that the file has been set back to its original state and so that keeps me from configuring my server the way that I would like.

PhasecoreX commented 1 month ago

You're welcome! Glad you are enjoying it!

Not sure on your issue though. The ini files would all be moved to the config directory on startup, otherwise I am not modifying them afterwards. Though maybe as the ut2k4 server is running it "locks" them? As in, it will write back to them regularly, so you would have to have the server stopped before you actually do any ini modifications.

freedbygrace commented 1 month ago

Ok got it! Yup, your are correct about the write back! Thanks! Can I contribute the docker compose file for those that come after me? Also, let's play sometime?!

Also, not sure if you intended to do this, but when specifying a folder for the redirect contents, if the folder does not exist, you get a ton of errors. I was thinking of checking to see if the folder exists and if it does not, create it, then the second error is the compression routine fails to compress if permissions are not correct. Would it be possible to add permissions the compression folder with the permissions for the specified GID/UID? If those are not specified then the default container user? I am glad to help with this but my bash is not nearly as competent.

I was also thinking a GIT url for addons? Create the structure in a repo, git clone, auto compress, everybody plays. Update over time.