Scuttlebot version

This commit is contained in:
Bob Mottram 2018-04-12 19:48:56 +01:00
parent ea37577009
commit b13d431627
1 changed files with 10 additions and 4 deletions

View File

@ -35,7 +35,7 @@ SHOW_ICANN_ADDRESS_ON_ABOUT=0
SCUTTLEBOT_DOMAIN_NAME= SCUTTLEBOT_DOMAIN_NAME=
SCUTTLEBOT_CODE= SCUTTLEBOT_CODE=
SCUTTLEBOT_VERSION='10.4.6' SCUTTLEBOT_VERSION='11.2.0'
SCUTTLEBOT_PORT=8010 SCUTTLEBOT_PORT=8010
SCUTTLEBOT_ONION_PORT=8623 SCUTTLEBOT_ONION_PORT=8623
GIT_SSB_PORT=7718 GIT_SSB_PORT=7718
@ -382,9 +382,15 @@ function mesh_install_scuttlebot {
cat <<EOF > "$rootdir/usr/bin/install_scuttlebot" cat <<EOF > "$rootdir/usr/bin/install_scuttlebot"
#!/bin/bash #!/bin/bash
npm install --arch=$NPM_ARCH -g scuttlebot@${SCUTTLEBOT_VERSION} if ! npm install --arch=$NPM_ARCH -g scuttlebot@${SCUTTLEBOT_VERSION}; then
npm install --arch=$NPM_ARCH -g git-ssb exit 1
npm install --arch=$NPM_ARCH -g git-remote-ssb fi
if ! npm install --arch=$NPM_ARCH -g git-ssb; then
exit 2
fi
if ! npm install --arch=$NPM_ARCH -g git-remote-ssb; then
exit 3
fi
EOF EOF
chroot "$rootdir" /bin/chmod +x /usr/bin/install_scuttlebot chroot "$rootdir" /bin/chmod +x /usr/bin/install_scuttlebot
chroot "$rootdir" /usr/bin/install_scuttlebot chroot "$rootdir" /usr/bin/install_scuttlebot