Skip to content

Commit

Permalink
testing :3
Browse files Browse the repository at this point in the history
  • Loading branch information
Soapy7261 committed Sep 30, 2024
1 parent b390333 commit 624aac7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions java/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ TZ=${TZ:-UTC}
export TZ

# Set environment variable that holds the Internal Docker IP
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
export INTERNAL_IP
if ip; then
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
export INTERNAL_IP
fi

# Switch to the container's working directory
cd /home/container || exit 1
Expand Down

0 comments on commit 624aac7

Please sign in to comment.