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.
This commit is contained in:
13
games/thebattleforwesnoth/entrypoint.sh
Normal file
13
games/thebattleforwesnoth/entrypoint.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/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}
|
Reference in New Issue
Block a user