apply INTERNAL_IP fix
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd /home/container
|
cd /home/container
|
||||||
|
|
||||||
# Make internal Docker IP address available to processes.
|
# Set environment variable that holds the Internal Docker IP
|
||||||
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
|
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
|
||||||
|
export INTERNAL_IP
|
||||||
|
|
||||||
# Replace Startup Variables
|
# Replace Startup Variables
|
||||||
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
|
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
|
||||||
|
Reference in New Issue
Block a user