Fix http_proxy in transmogrity; add mpg123

This commit is contained in:
Tony Garnock-Jones 2022-02-09 15:49:17 +01:00
parent cf6d1ef5f9
commit 3c91e5d74b
1 changed files with 12 additions and 1 deletions

View File

@ -6,7 +6,16 @@ set -eu
SUDOPASS=${SUDOPASS:-user}
REBOOT_AFTER_TRANSMOGRIFY=${REBOOT_AFTER_TRANSMOGRIFY:-}
http_proxy=${http_proxy:-http://10.0.2.2:3128/}
if [ -z "${http_proxy:-}" ]
then
if ip a | grep -q -F 10.0.2
then
http_proxy=http://10.0.2.2:3128/
else
http_proxy=
fi
fi
if [ $(id -u) -ne 0 ]
then
@ -23,6 +32,7 @@ cp synit-apk-key.pub /etc/apk/keys/.
. /etc/deviceinfo
ls packages/$deviceinfo_arch/
echo "Will use http_proxy=${http_proxy}"
apk add -X `pwd`/packages \
preserves-tools \
squeak-cog-vm \
@ -31,6 +41,7 @@ apk add -X `pwd`/packages \
\
alsa-utils \
qmi-utils \
mpg123 \
\
docker