From c8e0dae8416fb73263093f2007110d0db45f2c54 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 12 Sep 2017 13:54:23 +0100 Subject: [PATCH] Try installing patchwork on mesh images --- src/freedombone-image-customise | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index 10d12a1f..64a63e9d 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -561,6 +561,27 @@ INSTALL_DIR=$HOME/build INSTALLING_MESH= +install_patchwork() { + chroot "$rootdir" apt-get g++ m4 libtool automake nodejs + chroot "$rootdir" apt-get libxext-dev libxtst-dev libxkbfile-dev + git clone https://github.com/ssbc/patchwork $rootdir/etc/patchwork + + cat < $rootdir/usr/bin/install_patchwork +#!/bin/bash +cd /etc/patchwork +npm install +EOF + chroot "$rootdir" /bin/chmod +x /usr/bin/install_patchwork + chroot "$rootdir" /usr/bin/install_patchwork + if [ ! -f /usr/bin/patchwork ]; then + if [ ! -f /usr/local/bin/patchwork ]; then + echo $'Unable to install SSB Patchwork peer' + exit 783524 + fi + fi + rm $rootdir/usr/bin/install_patchwork +} + initialise_mesh() { if [[ $VARIANT != "mesh"* ]]; then return @@ -597,6 +618,7 @@ initialise_mesh() { install_tomb #install_tahoelafs #install_librevault + install_patchwork install_ipfs install_tox install_web_server