diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2012-05-15 18:52:11 +0200 |
---|---|---|
committer | Fabian Affolter <fabian@affolter-engineering.ch> | 2012-05-15 18:52:11 +0200 |
commit | 2f6e9d41b2b93e63ea1b014ef2fdea5ace7d71af (patch) | |
tree | 4af083ae24249c47e1fc83a7831fe7ff04f30f32 | |
parent | 8107e40381473f9be57666971e9af9bbf1210e7a (diff) | |
download | alpine-chroot-2f6e9d41b2b93e63ea1b014ef2fdea5ace7d71af.tar.bz2 alpine-chroot-2f6e9d41b2b93e63ea1b014ef2fdea5ace7d71af.tar.xz |
Updated
-rw-r--r-- | alpine-chroot.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/alpine-chroot.sh b/alpine-chroot.sh index 42a2a55..aeb58a2 100644 --- a/alpine-chroot.sh +++ b/alpine-chroot.sh @@ -20,7 +20,7 @@ # http://wiki.alpinelinux.org/wiki/Setting_up_the_build_environment_in_chroot MIRROR=http://dl-3.alpinelinux.org/alpine -APK_TOOL=apk-tools-static-2.2.5-r0.apk +APK_TOOL=apk-tools-static-2.3.1-r2.apk usage() { cat <<__EOF__ @@ -52,6 +52,11 @@ while getopts ":h:a:d:r:" opt; do esac done +if [ "$RELEASE" = "" ]; then + LATEST=`curl --silent $MIRROR/.latest.txt` + RELEASE=${LATEST:31:3} +fi + if [ "$ARCH" = "" ]; then ARCH=`uname -i` fi @@ -65,10 +70,7 @@ if [ "$CHROOT" = "" ]; then CHROOT="alpinechroot-$RELEASE" fi -if [ "$RELEASE" = "" ]; then - LATEST=`curl --silent $MIRROR/.latest.txt` - RELEASE=${LATEST:31:3} -fi + # Root has $UID 0 ROOT_UID=0 |