Skip to content

Commit 42d1f29

Browse files
authored
Refactor: Zerotier-One (#9804)
1 parent 0ab80c8 commit 42d1f29

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

ct/zerotier-one.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ function update_script() {
3333
systemctl stop zerotier-one
3434
msg_ok "Stopping Service"
3535

36-
msg_info "Updating ${APP}"
36+
msg_info "Updating Zerotier-One"
3737
$STD apt update
38-
$STD apt -y upgrade
39-
msg_ok "Updated ${APP}"
38+
$STD apt upgrade -y
39+
msg_ok "Updated Zerotier-One"
4040

4141
msg_info "Starting Service"
4242
systemctl start zerotier-one

frontend/public/json/zerotier-one.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"interface_port": 3443,
1212
"documentation": "https://docs.zerotier.com/",
1313
"website": "https://www.zerotier.com/",
14-
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@master/webp/zerotier.webp",
14+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/zerotier.webp",
1515
"config_path": "/opt/key-networks/ztncui/.env",
1616
"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.",
1717
"install_methods": [

install/zerotier-one-install.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
#Copyright (c) 2021-2025 community-scripts ORG
3+
# Copyright (c) 2021-2025 community-scripts ORG
44
# Author: tremor021
55
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
66
# Source: https://www.zerotier.com/
@@ -13,6 +13,17 @@ setting_up_container
1313
network_check
1414
update_os
1515

16+
msg_warn "WARNING: This script will run an external installer from a third-party source (https://install.zerotier.com)."
17+
msg_warn "The following code is NOT maintained or audited by our repository."
18+
msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:"
19+
msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ https://install.zerotier.com"
20+
echo
21+
read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM
22+
if [[ ! $CONFIRM =~ ^([yY][eE][sS]|[yY])$ ]]; then
23+
msg_error "Aborted by user. No changes have been made."
24+
exit 10
25+
fi
26+
1627
msg_info "Setting up Zerotier-One"
1728
curl -fsSL https://raw.githubusercontent.com/zerotier/ZeroTierOne/main/doc/contact%40zerotier.com.gpg | gpg --import >/dev/null 2>&1
1829
curl -fsSL https://install.zerotier.com -o /tmp/zerotier-install.sh
@@ -33,7 +44,7 @@ echo NODE_ENV=production >>/opt/key-networks/ztncui/.env
3344
chmod 400 /opt/key-networks/ztncui/.env
3445
chown ztncui:ztncui /opt/key-networks/ztncui/.env
3546
systemctl restart ztncui
36-
msg_ok "Done setting up UI."
47+
msg_ok "Setup UI."
3748

3849
motd_ssh
3950
customize

0 commit comments

Comments
 (0)