From 8fed9ba30679e1fd73b7759a674525a30d05de9b Mon Sep 17 00:00:00 2001 From: Th3Dilli Date: Fri, 13 May 2022 21:15:33 +0200 Subject: [PATCH] apply INTERNAL_IP fix --- games/mohaa/entrypoint.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/games/mohaa/entrypoint.sh b/games/mohaa/entrypoint.sh index 13d9e20..11acd70 100644 --- a/games/mohaa/entrypoint.sh +++ b/games/mohaa/entrypoint.sh @@ -1,8 +1,9 @@ #!/bin/bash cd /home/container -# Make internal Docker IP address available to processes. -export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'` +# Set environment variable that holds the Internal Docker IP +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')