From 590e7f0334fe964975f802c09238751968c7ff4f Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 26 Apr 2018 18:36:13 +0200 Subject: [PATCH] Add nodejs stuff only for amd64 --- images/make-images | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/images/make-images b/images/make-images index 2d7b632..0ec3616 100755 --- a/images/make-images +++ b/images/make-images @@ -29,11 +29,14 @@ function build_image() chroot $CHROOT apt-get update chroot $CHROOT apt-get dist-upgrade - chroot $CHROOT apt-get install -y build-essential debhelper cmake wget + chroot $CHROOT apt-get install -y build-essential debhelper cmake wget devscripts - chroot $CHROOT wget -q -O /tmp/setup_nodejs https://deb.nodesource.com/setup_4.x - chroot $CHROOT bash /tmp/setup_nodejs - chroot $CHROOT apt-get install -y nodejs + if [ "$ARCH" == "amd64" ]; + then + chroot $CHROOT wget -q -O /tmp/setup_nodejs https://deb.nodesource.com/setup_4.x + chroot $CHROOT bash /tmp/setup_nodejs + chroot $CHROOT apt-get install -y nodejs + fi chroot $CHROOT apt-get clean