From 963d79f40e8bae56de2d2460fb71918e1afb6501 Mon Sep 17 00:00:00 2001 From: Jamil Date: Fri, 26 Apr 2024 07:55:26 -0700 Subject: [PATCH] fix(gateway): Fix conditional used to check for upgrades (#4796) See https://firezonehq.slack.com/archives/C06L41XN05T/p1714071689814809 --- scripts/gateway-systemd-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gateway-systemd-install.sh b/scripts/gateway-systemd-install.sh index 96482bb13..84d069a06 100755 --- a/scripts/gateway-systemd-install.sh +++ b/scripts/gateway-systemd-install.sh @@ -61,7 +61,7 @@ if [ ! -e /usr/local/bin/firezone-gateway ]; then # See https://www.github.com/firezone/firezone/releases for available binaries curl -fsSL https://www.firezone.dev/dl/firezone-gateway/latest/\$arch -o /tmp/firezone-gateway - if [ -x /tmp/firezone-gateway ]; then + if file /tmp/firezone-gateway | grep -q "executable"; then mv /tmp/firezone-gateway /usr/local/bin/firezone-gateway else echo "/tmp/firezone-gateway is not an executable!"