Add stub of chainspace install.

This commit is contained in:
parazyd 2018-02-20 14:44:20 +01:00
parent e53e058366
commit 1bbb1e8105
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
2 changed files with 17 additions and 1 deletions

2
config
View File

@ -26,6 +26,8 @@ golang_url="https://sdk.dyne.org:4443/job/go-binaries/lastBuild/architecture=${a
zulujava_url="http://cdn.azul.com/zulu-embedded/bin/ezdk-1.8.0_152-8.25.0.76-eval-linux_aarch32hf.tar.gz"
chainspace_url="https://github.com/chainspace/chainspace"
size="4098"
filesystem="btrfs"

View File

@ -37,7 +37,7 @@ blend_postinst() {
notice "executing $blend_name postinst"
nopackage=(musl tomb golang tordam stem netdata zenroom)
nopackage=(musl tomb golang tordam stem netdata zenroom chainspace)
[[ -n "$armsdk_version" ]] && nopackage+=(zulujava)
for app in $nopackage; do
blend_install_${app} || zerr
@ -236,6 +236,20 @@ EOF
chroot-script -d install-zulujava || zerr
}
## }}}
## {{{ blend_install_chainspace()
blend_install_chainspace() {
fn blend_install_chainspace
req=(strapdir chainspace_url)
ckreq || return 1
notice "installing chainspace"
git clone "$chainspace_url" "$strapdir/home/decode/chainspace" || zerr
cat <<EOF | sudo tee ${strapdir}/install-chainspace >/dev/null
chown -R decode:decode /home/decode/chainspace
EOF
chroot-script install-chainspace
}
## }}}
## {{{ blend_finalize()
blend_finalize() {