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 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 # Update certs
rm /root/.gnutls/known_hosts rm /root/.gnutls/known_hosts

5
run.sh
View File

@@ -1,7 +1,5 @@
#!/bin/bash #!/bin/bash
export IP=$(getent ahostsv4 freegamez.ga | awk '{ print $1 }' | head -1)
docker run -d \ docker run -d \
--name=xteve_lazystream \ --name=xteve_lazystream \
--log-opt max-size=10m \ --log-opt max-size=10m \
@@ -12,7 +10,4 @@ docker run -d \
-v /mnt/user/appdata/xteve/_guide2go/:/guide2go:rw \ -v /mnt/user/appdata/xteve/_guide2go/:/guide2go:rw \
-v /mnt/user/appdata/xteve/playlists/:/playlists:rw \ -v /mnt/user/appdata/xteve/playlists/:/playlists:rw \
-v /tmp/xteve/:/tmp/xteve:rw \ -v /tmp/xteve/:/tmp/xteve:rw \
--add-host="mf.svc.nhl.com:$IP" \
--add-host="playback.svcs.mlb.com:$IP" \
--add-host="mlb-ws-mf.media.mlb.com:$IP" \
taylorbourne/xteve_lazystream taylorbourne/xteve_lazystream