9833f81007
Trying this, time to see if it works.
17 lines
424 B
Bash
17 lines
424 B
Bash
#!/bin/bash
|
|
|
|
function fix_linux_internal_host() {
|
|
DOCKER_INTERNAL_HOST="host.docker.internal"
|
|
|
|
if ! grep $DOCKER_INTERNAL_HOST /etc/hosts > /dev/null ; then
|
|
DOCKER_INTERNAL_IP=`/sbin/ip route | awk '/default/ { print $3 }' | awk '!seen[$0]++'`
|
|
echo -e "$DOCKER_INTERNAL_IP\t$DOCKER_INTERNAL_HOST" | tee -a /etc/hosts > /dev/null
|
|
fi
|
|
}
|
|
|
|
fix_linux_internal_host
|
|
|
|
python3 runner_notify.py -c config.ini
|
|
sleep 60
|
|
|