From dc9d6cbe7874506af33e20b68c5b7784101f345c Mon Sep 17 00:00:00 2001 From: Zack Ruppert Date: Mon, 11 Aug 2025 10:58:01 -0400 Subject: [PATCH] Updates to address PR Requests - moved install messages - updated source to VED - update icon to use standard cdn - use cat standard instead of echo --- ct/uhf.sh | 4 +--- frontend/public/json/uhf.json | 2 +- install/uhf-install.sh | 19 ++++++++++--------- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/ct/uhf.sh b/ct/uhf.sh index d980b336..d2f82254 100644 --- a/ct/uhf.sh +++ b/ct/uhf.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) # Copyright (c) 2021-2025 community-scripts ORG # Author: zackwithak13 # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE @@ -34,12 +34,10 @@ function update_script() { msg_info "Updating ${APP}" fetch_and_deploy_gh_release "comskip" "swapplications/comskip" "prebuild" "latest" "/opt/comskip" "comskip-x64-*.zip" fetch_and_deploy_gh_release "uhf-server" "swapplications/uhf-server-dist" "prebuild" "latest" "/opt/uhf-server" "UHF.Server-linux-x64-*.zip" - msg_ok "Updated ${APP}" msg_info "Starting ${APP}" systemctl start uhf-server msg_ok "Started ${APP}" - msg_ok "Updated Successfully" exit } diff --git a/frontend/public/json/uhf.json b/frontend/public/json/uhf.json index 01db4992..fd9776e4 100644 --- a/frontend/public/json/uhf.json +++ b/frontend/public/json/uhf.json @@ -11,7 +11,7 @@ "interface_port": 7568, "documentation": "https://www.uhfapp.com/server", "website": "https://www.uhfapp.com/", - "logo": "https://framerusercontent.com/images/PF6RdbR6G8CxEeMglfuiHg4MGJs.png", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/uhf.webp", "config_path": "/etc/uhf-server/", "description": "UHF Server is a powerful companion app that lets you seamlessly schedule and record your favorite shows from the UHF app.", "install_methods": [ diff --git a/install/uhf-install.sh b/install/uhf-install.sh index d0594de1..44015c9a 100644 --- a/install/uhf-install.sh +++ b/install/uhf-install.sh @@ -29,34 +29,35 @@ $STD apt-get update $STD apt-get -y install ffmpeg msg_ok "Installed Dependencies" -msg_info "Installing UHF Server" +msg_info "Setting Up UHF Server Environment" mkdir -p /etc/uhf-server mkdir -p /var/lib/uhf-server/data mkdir -p /var/lib/uhf-server/recordings -env_path="/etc/uhf-server/.env" -echo "API_HOST=0.0.0.0 +cat </etc/uhf-server/.env +API_HOST=0.0.0.0 API_PORT=7568 RECORDINGS_DIR=/var/lib/uhf-server/recordings DB_PATH=/var/lib/uhf-server/data/db.json -LOG_LEVEL=INFO" >"${env_path}" +LOG_LEVEL=INFO +EOF +msg_ok "Set Up UHF Server Environment" fetch_and_deploy_gh_release "comskip" "swapplications/comskip" "prebuild" "latest" "/opt/comskip" "comskip-x64-*.zip" fetch_and_deploy_gh_release "uhf-server" "swapplications/uhf-server-dist" "prebuild" "latest" "/opt/uhf-server" "UHF.Server-linux-x64-*.zip" -msg_ok "Installed UHF Server" msg_info "Creating Service" -service_path="/etc/systemd/system/uhf-server.service" +service_path="" +cat </etc/systemd/system/uhf-server.service echo "[Unit] Description=UHF Server service After=syslog.target network-online.target [Service] Type=simple -User=root -Group=root WorkingDirectory=/opt/uhf-server EnvironmentFile=/etc/uhf-server/.env ExecStart=/opt/uhf-server/uhf-server [Install] -WantedBy=multi-user.target" >"${service_path}" +WantedBy=multi-user.target +EOF systemctl enable --now -q uhf-server.service msg_ok "Created Service"