From 659ea817405726257f3717d01e64d21390524c8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Wed, 8 Oct 2025 06:44:57 +0200 Subject: [PATCH] ZeroTier One: Fix install output (#8179) --- install/zerotier-one-install.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/install/zerotier-one-install.sh b/install/zerotier-one-install.sh index 0097b1409..18734be60 100644 --- a/install/zerotier-one-install.sh +++ b/install/zerotier-one-install.sh @@ -14,10 +14,14 @@ network_check update_os msg_info "Setting up Zerotier-One" -curl -fsSL 'https://raw.githubusercontent.com/zerotier/ZeroTierOne/main/doc/contact%40zerotier.com.gpg' | gpg --import && - if z="$(curl -fsSL 'https://install.zerotier.com/' | gpg)"; then - echo "$z" | sudo bash - fi +curl -fsSL https://raw.githubusercontent.com/zerotier/ZeroTierOne/main/doc/contact%40zerotier.com.gpg | gpg --import >/dev/null 2>&1 +curl -fsSL https://install.zerotier.com -o /tmp/zerotier-install.sh +if gpg --verify /tmp/zerotier-install.sh >/dev/null 2>&1; then + $STD bash /tmp/zerotier-install.sh +else + msg_warn "Could not verify signature of Zerotier-One install script. Exiting..." + exit 1 +fi msg_ok "Setup Zerotier-One" msg_info "Setting up UI"