Skip to content

Commit 93a3a57

Browse files
uhf (#7589)
* 'Add new script' * Update uhf.sh --------- Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com> Co-authored-by: Slaviša Arežina <[email protected]>
1 parent 8b2645a commit 93a3a57

File tree

4 files changed

+162
-0
lines changed

4 files changed

+162
-0
lines changed

ct/headers/uhf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
__ ____ ________
2+
/ / / / / / / ____/
3+
/ / / / /_/ / /_
4+
/ /_/ / __ / __/
5+
\____/_/ /_/_/
6+

ct/uhf.sh

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
#!/usr/bin/env bash
2+
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: zackwithak13
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://www.uhfapp.com/server
7+
8+
APP="UHF"
9+
var_tags="${var_tags:-media}"
10+
var_cpu="${var_cpu:-2}"
11+
var_ram="${var_ram:-2048}"
12+
var_disk="${var_disk:-8}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-12}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
if [[ ! -d /opt/uhf-server ]]; then
27+
msg_error "No ${APP} Installation Found!"
28+
exit
29+
fi
30+
if check_for_gh_release "uhf-server" "swapplications/uhf-server-dist"; then
31+
msg_info "Stopping Service"
32+
systemctl stop uhf-server
33+
msg_ok "Stopped Service"
34+
35+
msg_info "Updating ${APP} LXC"
36+
$STD apt-get update
37+
$STD apt-get -y upgrade
38+
msg_ok "Updated ${APP} LXC"
39+
40+
fetch_and_deploy_gh_release "comskip" "swapplications/comskip" "prebuild" "latest" "/opt/comskip" "comskip-x64-*.zip"
41+
fetch_and_deploy_gh_release "uhf-server" "swapplications/uhf-server-dist" "prebuild" "latest" "/opt/uhf-server" "UHF.Server-linux-x64-*.zip"
42+
43+
msg_info "Starting Service"
44+
systemctl start uhf-server
45+
msg_ok "Started Service"
46+
47+
msg_info "Cleaning up"
48+
$STD apt-get -y autoremove
49+
$STD apt-get -y autoclean
50+
msg_ok "Cleaned"
51+
msg_ok "Updated Successfully"
52+
fi
53+
exit
54+
}
55+
56+
start
57+
build_container
58+
description
59+
60+
msg_ok "Completed Successfully!\n"
61+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
62+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
63+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:7568${CL}"

frontend/public/json/uhf.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "UHF Server",
3+
"slug": "uhf",
4+
"categories": [
5+
13
6+
],
7+
"date_created": "2025-08-07",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"interface_port": 7568,
12+
"documentation": "https://www.uhfapp.com/server",
13+
"website": "https://www.uhfapp.com/",
14+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/uhf.webp",
15+
"config_path": "/etc/uhf-server/",
16+
"description": "UHF Server is a powerful companion app that lets you seamlessly schedule and record your favorite shows from the UHF app.",
17+
"install_methods": [
18+
{
19+
"type": "default",
20+
"script": "ct/uhf.sh",
21+
"resources": {
22+
"cpu": 2,
23+
"ram": 2048,
24+
"hdd": 8,
25+
"os": "Debian",
26+
"version": "12"
27+
}
28+
}
29+
],
30+
"default_credentials": {
31+
"username": null,
32+
"password": null
33+
},
34+
"notes": []
35+
}

install/uhf-install.sh

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: zackwithak13
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://www.uhfapp.com/server
7+
8+
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
9+
color
10+
verb_ip6
11+
catch_errors
12+
setting_up_container
13+
network_check
14+
update_os
15+
16+
msg_info "Installing Dependencies"
17+
$STD apt install -y ffmpeg
18+
msg_ok "Installed Dependencies"
19+
20+
msg_info "Setting Up UHF Server Environment"
21+
mkdir -p /etc/uhf-server
22+
mkdir -p /var/lib/uhf-server/data
23+
mkdir -p /var/lib/uhf-server/recordings
24+
cat <<EOF >/etc/uhf-server/.env
25+
API_HOST=0.0.0.0
26+
API_PORT=7568
27+
RECORDINGS_DIR=/var/lib/uhf-server/recordings
28+
DB_PATH=/var/lib/uhf-server/data/db.json
29+
LOG_LEVEL=INFO
30+
EOF
31+
msg_ok "Set Up UHF Server Environment"
32+
33+
fetch_and_deploy_gh_release "comskip" "swapplications/comskip" "prebuild" "latest" "/opt/comskip" "comskip-x64-*.zip"
34+
fetch_and_deploy_gh_release "uhf-server" "swapplications/uhf-server-dist" "prebuild" "latest" "/opt/uhf-server" "UHF.Server-linux-x64-*.zip"
35+
36+
msg_info "Creating Service"
37+
cat <<EOF >/etc/systemd/system/uhf-server.service
38+
[Unit]
39+
Description=UHF Server service
40+
After=syslog.target network-online.target
41+
[Service]
42+
Type=simple
43+
WorkingDirectory=/opt/uhf-server
44+
EnvironmentFile=/etc/uhf-server/.env
45+
ExecStart=/opt/uhf-server/uhf-server
46+
[Install]
47+
WantedBy=multi-user.target
48+
EOF
49+
systemctl enable -q --now uhf-server
50+
msg_ok "Created Service"
51+
52+
motd_ssh
53+
customize
54+
55+
msg_info "Cleaning up"
56+
$STD apt-get -y autoremove
57+
$STD apt-get -y autoclean
58+
msg_ok "Cleaned"

0 commit comments

Comments
 (0)