From d3c0a0773d564836b6ab7157c3fb5881c5921bb0 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 19 Sep 2025 09:35:04 +0200 Subject: [PATCH] Refactor backup and package install in tunarr scripts Removes backup creation from the tunarr update script to streamline the update process. Refactors package installation in the install script for better readability and updates messaging for open package installation. --- ct/tunarr.sh | 8 -------- install/tunarr-install.sh | 15 ++++++++++++--- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/ct/tunarr.sh b/ct/tunarr.sh index 0934e9a8..f0ed721a 100644 --- a/ct/tunarr.sh +++ b/ct/tunarr.sh @@ -31,14 +31,6 @@ function update_script() { systemctl stop tunarr msg_ok "Stopped Service" - msg_info "Creating Backup" - if [ -d "/usr/local/share/tunarr" ]; then - tar -czf "/opt/${APP}_backup_$(date +%F).tar.gz" /usr/local/share/tunarr $STD - msg_ok "Backup Created" - else - msg_error "Backup failed: /usr/local/share/tunarr does not exist" - fi - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "tunarr" "chrisbenincasa/tunarr" "singlefile" "latest" "/opt/tunarr" "*linux-x64" msg_info "Starting Service" diff --git a/install/tunarr-install.sh b/install/tunarr-install.sh index b93e569d..4039de2f 100644 --- a/install/tunarr-install.sh +++ b/install/tunarr-install.sh @@ -43,11 +43,20 @@ URIs: http://deb.debian.org/debian Suites: trixie-updates Components: non-free non-free-firmware EOF + $STD apt update - $STD apt -y install {intel-media-va-driver-non-free,ocl-icd-libopencl1,intel-opencl-icd,vainfo,intel-gpu-tools} + $STD apt -y install \ + intel-media-va-driver-non-free \ + ocl-icd-libopencl1 \ + vainfo \ + intel-gpu-tools else - msg_info "Installing Intel Hardware Acceleration" - $STD apt -y install {va-driver-all,ocl-icd-libopencl1,intel-opencl-icd,vainfo,intel-gpu-tools} + msg_info "Installing Intel Hardware Acceleration (open packages)" + $STD apt -y install \ + va-driver-all \ + ocl-icd-libopencl1 \ + vainfo \ + intel-gpu-tools fi msg_ok "Installed and Set Up Intel Hardware Acceleration"