Update entrypoint.sh
Do not reinstall speedtest if already installed.
This commit is contained in:
parent
1254627483
commit
85505c3087
1 changed files with 8 additions and 5 deletions
|
@ -4,10 +4,13 @@ printenv >> /etc/environment
|
||||||
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
# Install speedtest-cli
|
# Install speedtest-cli
|
||||||
|
if [ ! -e /usr/bin/speedtest ]
|
||||||
|
then
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 379CE192D401AB61
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 379CE192D401AB61
|
||||||
echo "deb https://ookla.bintray.com/debian buster main" | tee /etc/apt/sources.list.d/speedtest.list
|
echo "deb https://ookla.bintray.com/debian buster main" | tee /etc/apt/sources.list.d/speedtest.list
|
||||||
apt-get update && apt-get -q -y install speedtest
|
apt-get update && apt-get -q -y install speedtest
|
||||||
#apt-get -q -y autoremove && apt-get -q -y clean
|
apt-get -q -y autoremove && apt-get -q -y clean
|
||||||
#rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
fi
|
||||||
|
|
||||||
exec /usr/local/bin/python3 $@
|
exec /usr/local/bin/python3 $@
|
||||||
|
|
Loading…
Reference in a new issue