Add support for accessing internal IP

Pterodactyl/Panel#613
This commit is contained in:
Dane Everitt 2017-10-09 23:10:54 -05:00
parent 48627e0cc0
commit c603e17465
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -1,8 +1,11 @@
#!/bin/ash
sleep 5
sleep 2
cd /home/container
# Make internal Docker IP address available to processes.
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
# Replace Startup Variables
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
echo ":/home/container$ ${MODIFIED_STARTUP}"