diff --git a/ct/uhf.sh b/ct/uhf.sh index 2b19fb5d1..7e55ac5e8 100644 --- a/ct/uhf.sh +++ b/ct/uhf.sh @@ -38,8 +38,14 @@ function update_script() { $STD apt -y upgrade msg_ok "Updated LXC" + 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 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 UHF Server" msg_info "Starting Service" systemctl start uhf-server diff --git a/install/uhf-install.sh b/install/uhf-install.sh index c1fa1cf0b..3f66b1fec 100644 --- a/install/uhf-install.sh +++ b/install/uhf-install.sh @@ -15,7 +15,7 @@ update_os setup_hwaccel msg_info "Installing Dependencies" -$STD apt install -y ffmpeg +setup_ffmpeg msg_ok "Installed Dependencies" msg_info "Setting Up UHF Server Environment"