Add datboi to mesh
This commit is contained in:
parent
0f9e185c77
commit
b015720228
|
@ -361,15 +361,31 @@ function scuttlebot_git_setup {
|
|||
fi
|
||||
}
|
||||
|
||||
function mesh_install_dat {
|
||||
get_npm_arch
|
||||
|
||||
cat <<EOF > $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 <<EOF > $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
|
||||
|
|
Loading…
Reference in New Issue