Skip to content

Commit

Permalink
Create entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jesforge authored Jun 23, 2024
1 parent 84bb5b2 commit ad6254d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions installer/linuxserver/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#! /bin/bash
cd /home/container

# Make internal docker ip address available to processes.
TZ=${TZ:-UTC}
export TZ
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
export INTERNAL_IP

# replace startup variables
PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')

# Run the server
eval ${PARSED}

0 comments on commit ad6254d

Please sign in to comment.