From 490ac552bc3189afcc17293464333d72fc8b46c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Fri, 23 Sep 2016 18:23:58 +0000 Subject: [PATCH] added yakkety and stretch; prepared for supoorting other architectures,namely armhf (raspberry pi) --- scripts/bootstrap-to-docker.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/scripts/bootstrap-to-docker.sh b/scripts/bootstrap-to-docker.sh index 2f29fb9..a5e8ab0 100755 --- a/scripts/bootstrap-to-docker.sh +++ b/scripts/bootstrap-to-docker.sh @@ -14,13 +14,17 @@ fi tmpdir=${tmpdir:-"/var/tmp"} docker_user=${docker_user:-${USER}} -archs=${archs:-"i386 amd64"} - -ubuntu_qt5="xenial wily vivid trusty" +if test -z "$archs"; then + case $(dpkg --print-architecture); in + (amd64) archs="i386 amd64";; + (*) archs=$(dpkg --print-architecture) + esac +fi +ubuntu_qt5="yakkety xenial wily vivid trusty" ubuntu_qt4="precise" -debian_qt5="jessie sid" +debian_qt5="stretch jessie sid" debian_qt4="wheezy" -debian_unsupported="buster stretch" # not in /usr/share/debootstrap/scripts +debian_unsupported="buster" # not in /usr/share/debootstrap/scripts ubuntu=("${ubuntu_qt5}" "${ubuntu_qt4}") debian=("${debian_qt5}" "${debian_qt4}")