fix(gateway): Fix conditional used to check for upgrades (#4796)

See https://firezonehq.slack.com/archives/C06L41XN05T/p1714071689814809
This commit is contained in:
Jamil
2024-04-26 07:55:26 -07:00
committed by GitHub
parent 20a7794d66
commit 963d79f40e

View File

@@ -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!"