From 82a089303654c61c57e59bcffa19e1c9594c66b7 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Mar 2026 10:26:15 +0100 Subject: [PATCH] Remove Unifi Network Server scripts (dead APT repo) (#12500) * Initial plan * remove Unifi (not unifi-os-server) CT, install, JSON, and header files Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com> --- ct/headers/unifi | 6 ---- ct/unifi.sh | 47 ----------------------------- frontend/public/json/unifi.json | 42 -------------------------- install/unifi-install.sh | 53 --------------------------------- 4 files changed, 148 deletions(-) delete mode 100644 ct/headers/unifi delete mode 100644 ct/unifi.sh delete mode 100644 frontend/public/json/unifi.json delete mode 100644 install/unifi-install.sh diff --git a/ct/headers/unifi b/ct/headers/unifi deleted file mode 100644 index 437771ac9..000000000 --- a/ct/headers/unifi +++ /dev/null @@ -1,6 +0,0 @@ - __ __ _ _____ - / / / /___ (_) __(_) - / / / / __ \/ / /_/ / -/ /_/ / / / / / __/ / -\____/_/ /_/_/_/ /_/ - diff --git a/ct/unifi.sh b/ct/unifi.sh deleted file mode 100644 index e31486c72..000000000 --- a/ct/unifi.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) -# Copyright (c) 2021-2026 tteck -# Author: tteck (tteckster) -# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://ui.com/download/unifi - -APP="Unifi" -var_tags="${var_tags:-network;unifi}" -var_cpu="${var_cpu:-2}" -var_ram="${var_ram:-2048}" -var_disk="${var_disk:-8}" -var_os="${var_os:-debian}" -var_version="${var_version:-12}" -var_unprivileged="${var_unprivileged:-1}" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -d /usr/lib/unifi ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - - JAVA_VERSION="21" setup_java - - msg_info "Updating ${APP}" - $STD apt update --allow-releaseinfo-change - ensure_dependencies unifi - 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}" -echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}https://${IP}:8443${CL}" diff --git a/frontend/public/json/unifi.json b/frontend/public/json/unifi.json deleted file mode 100644 index 07788860b..000000000 --- a/frontend/public/json/unifi.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "UniFi Network Server", - "slug": "unifi", - "categories": [ - 4 - ], - "date_created": "2024-05-02", - "type": "ct", - "updateable": true, - "privileged": false, - "interface_port": 8443, - "documentation": "https://help.ui.com/hc/en-us/articles/360012282453-Self-Hosting-a-UniFi-Network-Server", - "website": "https://www.ui.com/", - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/ubiquiti-unifi.webp", - "config_path": "", - "description": "UniFi Network Server is a software that helps manage and monitor UniFi networks (Wi-Fi, Ethernet, etc.) by providing an intuitive user interface and advanced features. It allows network administrators to configure, monitor, and upgrade network devices, as well as view network statistics, client devices, and historical events. The aim of the application is to make the management of UniFi networks easier and more efficient.", - "disable": true, - "disable_description": "This script is disabled because UniFi no longer delivers APT packages for Debian systems. The installation relies on APT repositories that are no longer maintained or available. For more details, see: https://github.com/community-scripts/ProxmoxVE/issues/11876", - "install_methods": [ - { - "type": "default", - "script": "ct/unifi.sh", - "resources": { - "cpu": 2, - "ram": 2048, - "hdd": 8, - "os": "debian", - "version": "12" - } - } - ], - "default_credentials": { - "username": null, - "password": null - }, - "notes": [ - { - "text": "For non-AVX CPUs, MongoDB 4.4 is installed. Please note this is a legacy solution that may present security risks and could become unsupported in future updates.", - "type": "warning" - } - ] -} diff --git a/install/unifi-install.sh b/install/unifi-install.sh deleted file mode 100644 index bb806ca86..000000000 --- a/install/unifi-install.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2026 tteck -# Author: tteck (tteckster) -# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://ui.com/download/unifi - -source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" -color -verb_ip6 -catch_errors -setting_up_container -network_check -update_os - -msg_info "Installing Dependencies" -$STD apt install -y apt-transport-https -curl -fsSL "https://dl.ui.com/unifi/unifi-repo.gpg" -o "/usr/share/keyrings/unifi-repo.gpg" -cat </dev/null -Types: deb -URIs: https://www.ui.com/downloads/unifi/debian -Suites: stable -Components: ubiquiti -Architectures: amd64 -Signed-By: /usr/share/keyrings/unifi-repo.gpg -EOF -$STD apt update -msg_ok "Installed Dependencies" - -JAVA_VERSION="21" setup_java - -if lscpu | grep -q 'avx'; then - MONGO_VERSION="8.0" setup_mongodb -else - msg_error "No AVX detected (CPU-Flag)! We have discontinued support for this. You are welcome to try it manually with a Debian LXC, but due to the many issues with Unifi, we currently only support AVX CPUs." - exit 10 -fi - -if ! dpkg -l | grep -q 'libssl1.1'; then - msg_info "Installing libssl (if needed)" - curl -fsSL "https://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1w-0+deb11u4_amd64.deb" -o "/tmp/libssl.deb" - $STD dpkg -i /tmp/libssl.deb - rm -f /tmp/libssl.deb - msg_ok "Installed libssl1.1" -fi - -msg_info "Installing UniFi Network Server" -$STD apt install -y unifi -msg_ok "Installed UniFi Network Server" - -motd_ssh -customize -cleanup_lxc