Explorar el Código

Try installing patchwork on mesh images

Bob Mottram hace 7 años
padre
commit
c8e0dae841
Se han modificado 1 ficheros con 22 adiciones y 0 borrados
  1. 22
    0
      src/freedombone-image-customise

+ 22
- 0
src/freedombone-image-customise Ver fichero

@@ -561,6 +561,27 @@ INSTALL_DIR=$HOME/build
561 561
 
562 562
 INSTALLING_MESH=
563 563
 
564
+install_patchwork() {
565
+    chroot "$rootdir" apt-get g++ m4 libtool automake nodejs
566
+    chroot "$rootdir" apt-get libxext-dev libxtst-dev libxkbfile-dev
567
+    git clone https://github.com/ssbc/patchwork $rootdir/etc/patchwork
568
+
569
+    cat <<EOF > $rootdir/usr/bin/install_patchwork
570
+#!/bin/bash
571
+cd /etc/patchwork
572
+npm install
573
+EOF
574
+    chroot "$rootdir" /bin/chmod +x /usr/bin/install_patchwork
575
+    chroot "$rootdir" /usr/bin/install_patchwork
576
+    if [ ! -f /usr/bin/patchwork ]; then
577
+        if [ ! -f /usr/local/bin/patchwork ]; then
578
+            echo $'Unable to install SSB Patchwork peer'
579
+            exit 783524
580
+        fi
581
+    fi
582
+    rm $rootdir/usr/bin/install_patchwork
583
+}
584
+
564 585
 initialise_mesh() {
565 586
     if [[ $VARIANT != "mesh"* ]]; then
566 587
         return
@@ -597,6 +618,7 @@ initialise_mesh() {
597 618
     install_tomb
598 619
     #install_tahoelafs
599 620
     #install_librevault
621
+    install_patchwork
600 622
     install_ipfs
601 623
     install_tox
602 624
     install_web_server