Files
yolks/games/thebattleforwesnoth/entrypoint.sh
mattman107 3798abab4e The Battle For Wesnoth (#237)
* Create Dockerfile

* Create entrypoint.sh

* Update games.yml

* Update README.md

* Update Dockerfile

* Update Dockerfile

* Rename Dockerfile to Dockerfile

* Rename entrypoint.sh to entrypoint.sh

* Update README.md

* Update games.yml

* Update README.md

* Update Dockerfile

* Update Dockerfile

make it actually work.
2024-04-19 16:10:42 +02:00

14 lines
362 B
Bash

#!/bin/bash
cd /home/container
# Make internal Docker IP address available to processes.
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
export INTERNAL_IP
# Replace Startup Variables
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
# Run the Server
eval ${MODIFIED_STARTUP}