ソースを参照

Try installing patchwork on mesh images

Bob Mottram 7 年 前
コミット
c8e0dae841
共有1 個のファイルを変更した22 個の追加0 個の削除を含む
  1. 22
    0
      src/freedombone-image-customise

+ 22
- 0
src/freedombone-image-customise ファイルの表示

561
 
561
 
562
 INSTALLING_MESH=
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
 initialise_mesh() {
585
 initialise_mesh() {
565
     if [[ $VARIANT != "mesh"* ]]; then
586
     if [[ $VARIANT != "mesh"* ]]; then
566
         return
587
         return
597
     install_tomb
618
     install_tomb
598
     #install_tahoelafs
619
     #install_tahoelafs
599
     #install_librevault
620
     #install_librevault
621
+    install_patchwork
600
     install_ipfs
622
     install_ipfs
601
     install_tox
623
     install_tox
602
     install_web_server
624
     install_web_server