2026-03-05 15:58:10 +01:00
|
|
|
#!/usr/bin/env bash
|
2026-09-01 13:28:55 +02:00
|
|
|
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main"
|
|
|
|
|
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
|
|
|
|
|
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
|
2026-03-05 15:58:10 +01:00
|
|
|
# Copyright (c) 2021-2026 community-scripts ORG
|
|
|
|
|
# Author: TechHutTV
|
|
|
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
|
|
|
# Source: https://netbird.io/
|
|
|
|
|
|
|
|
|
|
APP="NetBird"
|
|
|
|
|
var_tags="${var_tags:-network;vpn}"
|
|
|
|
|
var_cpu="${var_cpu:-1}"
|
|
|
|
|
var_ram="${var_ram:-512}"
|
|
|
|
|
var_disk="${var_disk:-4}"
|
|
|
|
|
var_os="${var_os:-debian}"
|
|
|
|
|
var_version="${var_version:-13}"
|
2026-06-22 04:42:17 +10:00
|
|
|
var_arm64="${var_arm64:-yes}"
|
2026-03-05 15:58:10 +01:00
|
|
|
var_unprivileged="${var_unprivileged:-1}"
|
|
|
|
|
var_tun="${var_tun:-yes}"
|
|
|
|
|
|
|
|
|
|
header_info "$APP"
|
|
|
|
|
variables
|
|
|
|
|
color
|
|
|
|
|
catch_errors
|
|
|
|
|
|
|
|
|
|
function update_script() {
|
|
|
|
|
header_info
|
|
|
|
|
check_container_storage
|
|
|
|
|
check_container_resources
|
|
|
|
|
|
2026-05-07 22:10:06 +02:00
|
|
|
if [[ ! -d /var/lib/netbird/ ]]; then
|
2026-03-05 15:58:10 +01:00
|
|
|
msg_error "No ${APP} Installation Found!"
|
|
|
|
|
exit
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
msg_info "Updating Netbird"
|
|
|
|
|
$STD apt update
|
|
|
|
|
$STD apt upgrade -y
|
|
|
|
|
msg_ok "Updated successfully!"
|
|
|
|
|
exit
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
start
|
|
|
|
|
build_container
|
|
|
|
|
description
|
|
|
|
|
|
|
|
|
|
msg_ok "Completed successfully!\n"
|
|
|
|
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
2026-07-06 21:15:04 +02:00
|
|
|
echo -e "${INFO}${YW}Access NetBird by entering the container and running:${CL}"
|
2026-06-03 11:03:13 +02:00
|
|
|
echo -e "${GATEWAY}${BGN}netbird up${CL}"
|