apply INTERNAL_IP fix

This commit is contained in:
Th3Dilli
2022-05-13 21:15:33 +02:00
parent ad792dc521
commit 8fed9ba306

View File

@@ -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')