Skip to content

Commit 7725a73

Browse files
committed
Ensure that downloaded iroh-relay matches expected SHA-256 sum
Previously we only used SHA-256 sum to check if we need to update the binary.
1 parent e65311c commit 7725a73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmdeploy/src/cmdeploy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def deploy_iroh_relay(config) -> None:
572572
server.shell(
573573
name="Download iroh-relay",
574574
commands=[
575-
f"(echo '{sha256sum} /usr/local/bin/iroh-relay' | sha256sum -c) || (curl -L {url} | gunzip | tar -x -f - ./iroh-relay -O >/usr/local/bin/iroh-relay.new && mv /usr/local/bin/iroh-relay.new /usr/local/bin/iroh-relay)",
575+
f"(echo '{sha256sum} /usr/local/bin/iroh-relay' | sha256sum -c) || (curl -L {url} | gunzip | tar -x -f - ./iroh-relay -O >/usr/local/bin/iroh-relay.new && (echo '{sha256sum} /usr/local/bin/iroh-relay.new' | sha256sum -c) && mv /usr/local/bin/iroh-relay.new /usr/local/bin/iroh-relay)",
576576
"chmod 755 /usr/local/bin/iroh-relay",
577577
],
578578
)

0 commit comments

Comments
 (0)