mirror of
https://github.com/darksaid98/yolks.git
synced 2026-12-01 22:22:40 +00:00
fix: invalid INTERNAL_IP environment value
New IP route output appends UID to the result, causing the value to be set to that instead of the IP. Fix it by ignoring the last two appended UID results
This commit is contained in:
25 files changed
+70
-48
No files matched your search
@@ -2,7 +2,8 @@
|
||||
cd /home/container
|
||||
|
||||
# Make internal Docker IP address available to processes.
|
||||
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
|
||||
|
||||
# Print current Python version
|
||||
python --version
|
||||
|
||||
Reference in new issue
Block a user