Pārlūkot izejas kodu

Install npm in mesh image

Bob Mottram 7 gadus atpakaļ
vecāks
revīzija
6756137f15
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. 9
    0
      src/freedombone-image-customise

+ 9
- 0
src/freedombone-image-customise Parādīt failu

564
 install_patchwork() {
564
 install_patchwork() {
565
     chroot "$rootdir" apt-get -yq install g++ m4 libtool automake nodejs
565
     chroot "$rootdir" apt-get -yq install g++ m4 libtool automake nodejs
566
     chroot "$rootdir" apt-get -yq install libxext-dev libxtst-dev libxkbfile-dev
566
     chroot "$rootdir" apt-get -yq install libxext-dev libxtst-dev libxkbfile-dev
567
+
568
+    wget https://www.npmjs.com/install.sh -O $rootdir/root/npm_install.sh
569
+    if [ ! -f $rootdir/root/npm_install.sh ]; then
570
+        echo $'Unable to download npm installer'
571
+        exit 8793636
572
+    fi
573
+    chroot "$rootdir" chmod +x /root/npm_install.sh
574
+    chroot "$rootdir" /root/npm_install.sh
575
+
567
     git clone https://github.com/ssbc/patchwork $rootdir/etc/patchwork
576
     git clone https://github.com/ssbc/patchwork $rootdir/etc/patchwork
568
 
577
 
569
     cat <<EOF > $rootdir/usr/bin/install_patchwork
578
     cat <<EOF > $rootdir/usr/bin/install_patchwork