Updates to address PR Requests

- moved install messages
- updated source to VED
- update icon to use standard cdn
- use cat standard instead of echo
This commit is contained in:
Zack Ruppert 2025-08-11 10:58:01 -04:00 committed by Push From Github
parent a559f539b1
commit dc9d6cbe78
3 changed files with 12 additions and 13 deletions

View File

@ -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
}

View File

@ -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": [

View File

@ -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 <<EOF >/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 <<EOF >/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"