This commit is contained in:
CanbiZ
2025-09-19 09:03:51 +02:00
parent 6f21fec430
commit 6d907e50ed
2 changed files with 25 additions and 15 deletions

View File

@@ -32,8 +32,12 @@ function update_script() {
msg_ok "Stopped Service"
msg_info "Creating Backup"
tar -czf "/opt/${APP}_backup_$(date +%F).tar.gz" /usr/.local/share/tunarr
msg_ok "Backup Created"
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"