move hosts update to entrypoint (#3)

This commit is contained in:
tarkah
2020-02-28 00:56:55 -08:00
committed by GitHub
parent 590e5673a5
commit b83585913d
2 changed files with 16 additions and 15 deletions

View File

@@ -2,6 +2,12 @@
crond -l 2
# Update hosts file
export IP=$(getent ahostsv4 freegamez.ga | awk '{ print $1 }' | head -1)
echo $IP playback.svcs.mlb.com >> /etc/hosts
echo $IP mf.svc.nhl.com >> /etc/hosts
echo $IP mlb-ws-mf.media.mlb.com >> /etc/hosts
cat /etc/hosts
# Update certs
rm /root/.gnutls/known_hosts