Skip to content

Instantly share code, notes, and snippets.

@davepuchyr
Created February 11, 2020 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davepuchyr/6c352a041f5f8225a84b3c134015329d to your computer and use it in GitHub Desktop.
Save davepuchyr/6c352a041f5f8225a84b3c134015329d to your computer and use it in GitHub Desktop.
sudo su
# update /etc/systemd/system/iovns.env with the patched bnsd artifact...
sed --in-place 's!IMAGE_IOVNS=.*!IMAGE_IOVNS=https://github.com/iov-one/weave/releases/download/v1.0.0/bnsd-1.0.0-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 binary...
cd ${DIR_IOVNS} && rm -v bnsd*
# ...download and extract the artifact if it matches the gitian build signature...
wget ${IMAGE_IOVNS} && sha256sum $(basename $IMAGE_IOVNS) | fgrep a94ebd686ff9ce66d4960ca282e89ef0c2d4ac9abe4c58cd6967e406cd1af8af && tar xvf $(basename $IMAGE_IOVNS) || echo 'BAD BINARY!'
./bnsd version | grep 1.0.0 || echo 'BAD bnsd 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