2025-11-02 23:49:54 -08:00
|
|
|
#!/usr/bin/env bash
|
2026-08-31 08:50:21 +02:00
|
|
|
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main"
|
|
|
|
|
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
|
|
|
|
|
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
|
2026-01-06 13:28:12 +01:00
|
|
|
# Copyright (c) 2021-2026 community-scripts ORG
|
2025-09-12 14:07:30 +02:00
|
|
|
# Author: zackwithak13
|
|
|
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
2026-02-24 15:11:53 +01:00
|
|
|
# Source: https://www.uhfapp.com/server | Github: https://github.com/swapplications/uhf-server-dist
|
2025-09-12 14:07:30 +02:00
|
|
|
|
|
|
|
|
APP="UHF"
|
|
|
|
|
var_tags="${var_tags:-media}"
|
|
|
|
|
var_cpu="${var_cpu:-2}"
|
|
|
|
|
var_ram="${var_ram:-2048}"
|
|
|
|
|
var_disk="${var_disk:-8}"
|
|
|
|
|
var_os="${var_os:-debian}"
|
2025-10-09 19:43:23 +02:00
|
|
|
var_version="${var_version:-13}"
|
2026-06-22 21:27:16 +10:00
|
|
|
var_arm64="${var_arm64:-yes}"
|
2025-09-12 14:07:30 +02:00
|
|
|
var_unprivileged="${var_unprivileged:-1}"
|
2025-12-17 14:13:27 +01:00
|
|
|
var_gpu="${var_gpu:-yes}"
|
2025-09-12 14:07:30 +02:00
|
|
|
|
|
|
|
|
header_info "$APP"
|
|
|
|
|
variables
|
|
|
|
|
color
|
|
|
|
|
catch_errors
|
|
|
|
|
|
|
|
|
|
function update_script() {
|
|
|
|
|
header_info
|
|
|
|
|
check_container_storage
|
|
|
|
|
check_container_resources
|
|
|
|
|
if [[ ! -d /opt/uhf-server ]]; then
|
|
|
|
|
msg_error "No ${APP} Installation Found!"
|
|
|
|
|
exit
|
|
|
|
|
fi
|
|
|
|
|
if check_for_gh_release "uhf-server" "swapplications/uhf-server-dist"; then
|
|
|
|
|
msg_info "Stopping Service"
|
|
|
|
|
systemctl stop uhf-server
|
|
|
|
|
msg_ok "Stopped Service"
|
|
|
|
|
|
2025-10-09 19:43:23 +02:00
|
|
|
msg_info "Updating LXC"
|
|
|
|
|
$STD apt update
|
|
|
|
|
$STD apt -y upgrade
|
|
|
|
|
msg_ok "Updated LXC"
|
2025-09-12 14:07:30 +02:00
|
|
|
|
2026-04-08 08:56:33 -04:00
|
|
|
msg_info "Updating UHF Server"
|
|
|
|
|
if dpkg -l ffmpeg 2>&1 | grep -q "ii"; then
|
|
|
|
|
apt remove ffmpeg -y && apt autoremove -y
|
|
|
|
|
fi
|
|
|
|
|
setup_ffmpeg
|
2026-06-22 23:35:14 +10:00
|
|
|
fetch_and_deploy_gh_release "comskip" "swapplications/comskip" "prebuild" "latest" "/opt/comskip" "comskip-$(arch_resolve "x64" "arm64")-*.zip"
|
|
|
|
|
fetch_and_deploy_gh_release "uhf-server" "swapplications/uhf-server-dist" "prebuild" "latest" "/opt/uhf-server" "UHF.Server-linux-$(arch_resolve "x64" "arm64")-*.zip"
|
2026-04-08 08:56:33 -04:00
|
|
|
msg_ok "Updated UHF Server"
|
2025-09-12 14:07:30 +02:00
|
|
|
|
|
|
|
|
msg_info "Starting Service"
|
|
|
|
|
systemctl start uhf-server
|
|
|
|
|
msg_ok "Started Service"
|
2025-10-30 09:24:16 -07:00
|
|
|
msg_ok "Updated successfully!"
|
2025-09-12 14:07:30 +02:00
|
|
|
fi
|
|
|
|
|
exit
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
start
|
|
|
|
|
build_container
|
|
|
|
|
description
|
|
|
|
|
|
2026-01-06 22:57:40 +01:00
|
|
|
msg_ok "Completed successfully!\n"
|
2025-09-12 14:07:30 +02:00
|
|
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
2026-06-03 11:03:13 +02:00
|
|
|
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
|
|
|
|
|
echo -e "${GATEWAY}${BGN}http://${IP}:7568${CL}"
|