Install npm in mesh image

This commit is contained in:
Bob Mottram 2017-09-12 14:51:37 +01:00
parent 90e086eb88
commit 6756137f15
1 changed files with 9 additions and 0 deletions

View File

@ -564,6 +564,15 @@ INSTALLING_MESH=
install_patchwork() {
chroot "$rootdir" apt-get -yq install g++ m4 libtool automake nodejs
chroot "$rootdir" apt-get -yq install libxext-dev libxtst-dev libxkbfile-dev
wget https://www.npmjs.com/install.sh -O $rootdir/root/npm_install.sh
if [ ! -f $rootdir/root/npm_install.sh ]; then
echo $'Unable to download npm installer'
exit 8793636
fi
chroot "$rootdir" chmod +x /root/npm_install.sh
chroot "$rootdir" /root/npm_install.sh
git clone https://github.com/ssbc/patchwork $rootdir/etc/patchwork
cat <<EOF > $rootdir/usr/bin/install_patchwork