commit 990c1d40cffd0a224e0185bef3f4f9748fb57d32 parent 517f69e8849eda264a5b4d867d68bbd300136ace Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 6 Jul 2014 18:37:32 +0000 misc: fix install-alpine Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org> Diffstat:
M | misc/install-alpine | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/misc/install-alpine b/misc/install-alpine @@ -25,12 +25,12 @@ apktools="apk-tools-static-2.4.4-r0.apk" if ! test -f "$apktools"; then wget "${mirror}/v3.0/main/x86_64/${apktools}" fi -if ! test -d "sbin"; then +if ! test -f "sbin/apk.static"; then tar -xzf "$apktools" fi # install in chroot. -"${installdir}/tmp/sbin/apk.static" -X "${mirror}/v3.0/main" -U --allow-untrusted --root "${installdir}" --initdb add alpine-base +"$tmpdir/sbin/apk.static" -X "${mirror}/v3.0/main" -U --allow-untrusted --root "${installdir}" --initdb add alpine-base # copy etc/resolv.conf mkdir -p "${installdir}/etc"