Do not use /sbin/ip to fetch the current ip (fix #712)

This commit is contained in:
nicolas.dorier 2019-03-24 23:56:31 +09:00
parent 91c63a8ee6
commit 561644f75b

View file

@ -1,4 +1,4 @@
#!/bin/sh
echo "$(/sbin/ip route|awk '/default/ { print $3 }') host.docker.internal" >> /etc/hosts
echo "$(grep "$HOSTNAME" /etc/hosts|awk '{print $1}') host.docker.internal" >> /etc/hosts
exec dotnet BTCPayServer.dll