comparison resources/entrypoint.sh @ 0:15c9fbefeaf1 draft

" master branch Updating"
author lain
date Tue, 01 Feb 2022 14:19:30 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:15c9fbefeaf1
1 #!/bin/bash
2
3 apt-get install iproute2 original-awk iputils-ping -y
4
5 HOST_DOMAIN="host.docker.internal"
6 ping -q -c1 $HOST_DOMAIN > /dev/null 2>&1
7 if [ $? -ne 0 ]; then
8 HOST_IP=$(ip route | awk 'NR==1 {print $3}')
9 echo -e "$HOST_IP\t$HOST_DOMAIN" >> /etc/hosts
10 fi
11
12
13 cd /XSeeker
14 stdbuf -i0 -o0 -e0 ./run.sh 2>&1 > /var/log/xseeker.log