Skip to content

Commit 659ea81

Browse files
authored
ZeroTier One: Fix install output (#8179)
1 parent a127124 commit 659ea81

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

install/zerotier-one-install.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ network_check
1414
update_os
1515

1616
msg_info "Setting up Zerotier-One"
17-
curl -fsSL 'https://raw.githubusercontent.com/zerotier/ZeroTierOne/main/doc/contact%40zerotier.com.gpg' | gpg --import &&
18-
if z="$(curl -fsSL 'https://install.zerotier.com/' | gpg)"; then
19-
echo "$z" | sudo bash
20-
fi
17+
curl -fsSL https://raw.githubusercontent.com/zerotier/ZeroTierOne/main/doc/contact%40zerotier.com.gpg | gpg --import >/dev/null 2>&1
18+
curl -fsSL https://install.zerotier.com -o /tmp/zerotier-install.sh
19+
if gpg --verify /tmp/zerotier-install.sh >/dev/null 2>&1; then
20+
$STD bash /tmp/zerotier-install.sh
21+
else
22+
msg_warn "Could not verify signature of Zerotier-One install script. Exiting..."
23+
exit 1
24+
fi
2125
msg_ok "Setup Zerotier-One"
2226

2327
msg_info "Setting up UI"

0 commit comments

Comments
 (0)