From 42d1f2980ae24c54b8ed1e715339e40969ab6b19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Tue, 9 Dec 2025 16:04:15 +0100 Subject: [PATCH] Refactor: Zerotier-One (#9804) --- ct/zerotier-one.sh | 6 +++--- frontend/public/json/zerotier-one.json | 2 +- install/zerotier-one-install.sh | 15 +++++++++++++-- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/ct/zerotier-one.sh b/ct/zerotier-one.sh index fb9d3a14b..399e78e72 100644 --- a/ct/zerotier-one.sh +++ b/ct/zerotier-one.sh @@ -33,10 +33,10 @@ function update_script() { systemctl stop zerotier-one msg_ok "Stopping Service" - msg_info "Updating ${APP}" + msg_info "Updating Zerotier-One" $STD apt update - $STD apt -y upgrade - msg_ok "Updated ${APP}" + $STD apt upgrade -y + msg_ok "Updated Zerotier-One" msg_info "Starting Service" systemctl start zerotier-one diff --git a/frontend/public/json/zerotier-one.json b/frontend/public/json/zerotier-one.json index eeef61ebf..f74d4199d 100644 --- a/frontend/public/json/zerotier-one.json +++ b/frontend/public/json/zerotier-one.json @@ -11,7 +11,7 @@ "interface_port": 3443, "documentation": "https://docs.zerotier.com/", "website": "https://www.zerotier.com/", - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@master/webp/zerotier.webp", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/zerotier.webp", "config_path": "/opt/key-networks/ztncui/.env", "description": "ZeroTier is a secure network overlay that allows you to manage all of your network resources as if they were on the same LAN. The software-defined solution can be deployed in minutes from anywhere. No matter how many devices you need to connect, or where they are in the world, ZeroTier makes global networking simple.", "install_methods": [ diff --git a/install/zerotier-one-install.sh b/install/zerotier-one-install.sh index b00a2048d..534855fe8 100644 --- a/install/zerotier-one-install.sh +++ b/install/zerotier-one-install.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -#Copyright (c) 2021-2025 community-scripts ORG +# Copyright (c) 2021-2025 community-scripts ORG # Author: tremor021 # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://www.zerotier.com/ @@ -13,6 +13,17 @@ setting_up_container network_check update_os +msg_warn "WARNING: This script will run an external installer from a third-party source (https://install.zerotier.com)." +msg_warn "The following code is NOT maintained or audited by our repository." +msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:" +msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ https://install.zerotier.com" +echo +read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM +if [[ ! $CONFIRM =~ ^([yY][eE][sS]|[yY])$ ]]; then + msg_error "Aborted by user. No changes have been made." + exit 10 +fi + msg_info "Setting up Zerotier-One" 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 @@ -33,7 +44,7 @@ echo NODE_ENV=production >>/opt/key-networks/ztncui/.env chmod 400 /opt/key-networks/ztncui/.env chown ztncui:ztncui /opt/key-networks/ztncui/.env systemctl restart ztncui -msg_ok "Done setting up UI." +msg_ok "Setup UI." motd_ssh customize