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