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.
This commit is contained in:
CanbiZ 2025-09-19 09:35:04 +02:00
parent d2e2b33c83
commit d3c0a0773d
2 changed files with 12 additions and 11 deletions

View File

@ -31,14 +31,6 @@ function update_script() {
systemctl stop tunarr systemctl stop tunarr
msg_ok "Stopped Service" 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" CLEAN_INSTALL=1 fetch_and_deploy_gh_release "tunarr" "chrisbenincasa/tunarr" "singlefile" "latest" "/opt/tunarr" "*linux-x64"
msg_info "Starting Service" msg_info "Starting Service"

View File

@ -43,11 +43,20 @@ URIs: http://deb.debian.org/debian
Suites: trixie-updates Suites: trixie-updates
Components: non-free non-free-firmware Components: non-free non-free-firmware
EOF EOF
$STD apt update $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 else
msg_info "Installing Intel Hardware Acceleration" msg_info "Installing Intel Hardware Acceleration (open packages)"
$STD apt -y install {va-driver-all,ocl-icd-libopencl1,intel-opencl-icd,vainfo,intel-gpu-tools} $STD apt -y install \
va-driver-all \
ocl-icd-libopencl1 \
vainfo \
intel-gpu-tools
fi fi
msg_ok "Installed and Set Up Intel Hardware Acceleration" msg_ok "Installed and Set Up Intel Hardware Acceleration"