Created
April 12, 2020 12:38
-
-
Save davepuchyr/c17c5a30b205b539281311ca5195cc57 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su | |
# update /etc/systemd/system/iovns.env with the latest artifacts... | |
sed --in-place 's!IMAGE_IOVNS=.*!IMAGE_IOVNS=https://github.com/iov-one/weave/releases/download/v1.0.4/bnsd-1.0.4-linux-amd64.tar.gz!' /etc/systemd/system/iovns.env | |
sed --in-place 's!IMAGE_TM=.*!IMAGE_TM=https://github.com/iov-one/tendermint-build/releases/download/v0.31.12-iov1/tendermint-0.31.12-linux-amd64.tar.gz!' /etc/systemd/system/iovns.env | |
# ...pick-up env vars... | |
set -o allexport ; source /etc/systemd/system/iovns.env ; set +o allexport # pick-up env vars | |
# ...remove outdated binaries... | |
cd ${DIR_IOVNS} && rm -v bnsd* && rm -v tendermint* | |
# ...download and extract the artifact if it matches the gitian build signature... | |
wget ${IMAGE_IOVNS} && sha256sum $(basename $IMAGE_IOVNS) | grep 98061912b5476198f6210e35d0c8d82fb7e60c63fdc9846419f9a0369a4b6abe && tar xvf $(basename $IMAGE_IOVNS) || echo 'BAD BINARY!' | |
wget ${IMAGE_TM} && sha256sum $(basename $IMAGE_TM) | grep a11a257d7882585ff11b9da0302acd0ba79dc8a5c296123434e50df93f5b8084 && tar xvf $(basename $IMAGE_TM) || echo 'BAD BINARY!' | |
./bnsd version | grep 1.0.4 || echo 'BAD bnsd VERSION' | |
./tendermint version | grep 0.31.12 || echo 'BAD tendermint VERSION' | |
# ...and, finally, restart iovns.service | |
systemctl restart iovns.service | |
exit # su |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment