From b015720228378755c2f0bc257cb81fd2e37d3007 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 11 Jan 2018 10:24:50 +0000 Subject: [PATCH] Add datboi to mesh --- src/freedombone-app-scuttlebot | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/freedombone-app-scuttlebot b/src/freedombone-app-scuttlebot index 80b67fd3..ab90b4c9 100755 --- a/src/freedombone-app-scuttlebot +++ b/src/freedombone-app-scuttlebot @@ -361,15 +361,31 @@ function scuttlebot_git_setup { fi } +function mesh_install_dat { + get_npm_arch + + cat < $rootdir/usr/bin/install_dat +#!/bin/bash +npm install --arch=$NPM_ARCH -g dat +npm install --arch=$NPM_ARCH -g @garbados/dat-boi +npm install --arch=$NPM_ARCH -g add-to-systemd +add-to-systemd dat-boi --user $(whoami) `which dat-boi` +EOF + chroot "$rootdir" /bin/chmod +x /usr/bin/install_dat + chroot "$rootdir" /usr/bin/install_dat + rm $rootdir/usr/bin/install_dat +} + function mesh_install_scuttlebot { SCUTTLEBOT_ONION_HOSTNAME= + mesh_install_dat + get_npm_arch cat < $rootdir/usr/bin/install_scuttlebot #!/bin/bash npm install --arch=$NPM_ARCH -g scuttlebot@${SCUTTLEBOT_VERSION} -npm install --arch=$NPM_ARCH -g dat npm install --arch=$NPM_ARCH -g git-ssb npm install --arch=$NPM_ARCH -g git-remote-ssb EOF