From 4d14510bd54605ff57750fc556a8c5808a154424 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Wed, 24 Nov 2021 16:27:37 +0100 Subject: [PATCH] fix: make relayd work when run in go-ipfs repo --- scripts/setup-relayd.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/setup-relayd.sh b/scripts/setup-relayd.sh index 1263c076..e23466d0 100755 --- a/scripts/setup-relayd.sh +++ b/scripts/setup-relayd.sh @@ -5,10 +5,13 @@ set -eo pipefail -if ! type relayd; then +if ! test -e ./go-libp2p-relay-daemon/relayd; then + echo "Building ./go-libp2p-relay-daemon/relayd binary.." + rm -rf ./go-libp2p-relay-daemon git clone https://github.com/libp2p/go-libp2p-relay-daemon.git cd go-libp2p-relay-daemon # no releases atm, so we pin implementation to specific commit git checkout 65211a0b6d881086feb7c386d780f55c37dff101 # 2021-11-19 go build ./... + echo "./go-libp2p-relay-daemon/relayd is ready" fi