From 37eb120cc7ffb1347af9bbaa0793185d3bc3c272 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 15 Jan 2026 11:03:45 +0100 Subject: [PATCH] ref unifi --- ct/unifi-os-server.sh | 2 ++ install/loki-install.sh | 2 +- install/unifi-os-server-install.sh | 12 +++++++----- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ct/unifi-os-server.sh b/ct/unifi-os-server.sh index fde4eb9cf..610d155a9 100644 --- a/ct/unifi-os-server.sh +++ b/ct/unifi-os-server.sh @@ -39,3 +39,5 @@ 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}:11443${CL}" diff --git a/install/loki-install.sh b/install/loki-install.sh index 0edc93282..e4aaaa0ea 100644 --- a/install/loki-install.sh +++ b/install/loki-install.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Copyright (c) 2021-2025 community-scripts ORG -# Author: hoholms +# Author: bysinka-95 # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/grafana/loki diff --git a/install/unifi-os-server-install.sh b/install/unifi-os-server-install.sh index 58dea42cf..c094ee67c 100644 --- a/install/unifi-os-server-install.sh +++ b/install/unifi-os-server-install.sh @@ -26,7 +26,12 @@ if [[ ! -e /dev/net/tun ]]; then fi msg_info "Installing dependencies" -$STD apt-get install -y ca-certificates curl jq podman uidmap slirp4netns wget +$STD apt install -y \ + ca-certificates \ + jq \ + podman \ + uidmap \ + slirp4netns msg_ok "Installed dependencies" msg_info "Installing sysctl wrapper (ignore non-critical errors)" @@ -47,7 +52,6 @@ if ! curl -fsSL "$API_URL" -o "$TEMP_JSON"; then msg_error "Failed to fetch data from Ubiquiti API" exit 1 fi - LATEST=$(jq -r ' ._embedded.firmware | map(select(.product == "unifi-os-server")) @@ -55,11 +59,9 @@ LATEST=$(jq -r ' | sort_by(.version_major, .version_minor, .version_patch) | last ' "$TEMP_JSON") - UOS_VERSION=$(echo "$LATEST" | jq -r '.version' | sed 's/^v//') UOS_URL=$(echo "$LATEST" | jq -r '._links.data.href') rm -f "$TEMP_JSON" - if [[ -z "$UOS_URL" || -z "$UOS_VERSION" || "$UOS_URL" == "null" ]]; then msg_error "Failed to parse UniFi OS Server version or download URL" exit 1 @@ -73,7 +75,7 @@ chmod +x /usr/local/sbin/unifi-os-server.bin msg_ok "Downloaded UniFi OS Server installer" msg_info "Installing UniFi OS Server (this takes a few minutes)" -echo y | /usr/local/sbin/unifi-os-server.bin +$STD /usr/local/sbin/unifi-os-server.bin <<<"y" msg_ok "UniFi OS Server installed" motd_ssh