azixus / ARK_Ascended_Docker

Docker image to run an ARK Survival Ascended server on Linux
MIT License
59 stars 11 forks source link

Added script_dir to manager.sh, allows calling from anywhere #26

Closed mycarrysun closed 6 months ago

mycarrysun commented 6 months ago

I tried to create an alias on my server to be able to run the manager.sh from anywhere but it doesn't work, it currently assumes you're running from the same directory. This now allows you to run it from anywhere by using a robust technique to get the directory of the current script and prefixing both the docker-compose.yml path and the .env path with it.

azixus commented 6 months ago

Good idea, thanks for the fix!