alinmear / docker-conanexiles

A docker container to easily provision and manage a conanexiles dedicated server using wine
MIT License
105 stars 74 forks source link

Env not added to settings #50

Closed boiss007 closed 3 years ago

boiss007 commented 3 years ago

Hello, First, thanks for the cool docker. i have used it for some time, but on a server reinstall, i started my usual docker-compose and no Env where added to setting. Specifically, the "AdminPassword and "ServerPassword" where not in my .ini. So free login to the server, no access to the server config and worst of all, no nudity...! I modified the .ini directly and all is well but the Environnment Variables config from docker-compose seems to be broken.

D3RFLO commented 3 years ago

Hey, i don't know if you still need this but i might have found the solution:

In the docker-compose.yml remove the env variable: - "CONANEXILES_INSTANCENAME=exiles0" then it worked for me

h4llm3n commented 3 years ago

Hey, i don't know if you still need this but i might have found the solution:

In the docker-compose.yml remove the env variable: - "CONANEXILES_INSTANCENAME=exiles0" then it worked for me

Thanks, that worked for me. 👍

jcoker85 commented 3 years ago

I think this is a bug in entrypoint.sh:

[ -n "${CONANEXILES_INSTANCENAME}" ] && _config_folder="/conanexiles/ConanSandbox/Saved/${CONANEXILES_INSTANCENAME}/Config/WindowsServer"

I think the path should be

/conanexiles/ConanSandbox/${CONANEXILES_INSTANCENAME}/Saved/Config/WindowsServer

If you look after the container is done being created, the modified files are in the wrong location as listed by the first path, and do not correctly overwrite the ones in the second path, which is what the server uses.

alinmear commented 3 years ago

Fixed in Master. Now Env Variables are setup again correctly