Update tunarr.sh

This commit is contained in:
CanbiZ 2025-09-19 09:00:30 +02:00
parent f924fa6063
commit 6f21fec430

View File

@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-1024}"
var_disk="${var_disk:-5}"
var_os="${var_os:-debian}"
var_version="${var_version:-12}"
var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
@ -27,9 +27,9 @@ function update_script() {
exit
fi
if check_for_gh_release "tunarr" "chrisbenincasa/tunarr"; then
msg_info "Stopping ${APP}"
msg_info "Stopping Service"
systemctl stop tunarr
msg_ok "Stopped ${APP}"
msg_ok "Stopped Service"
msg_info "Creating Backup"
tar -czf "/opt/${APP}_backup_$(date +%F).tar.gz" /usr/.local/share/tunarr
@ -37,17 +37,16 @@ function update_script() {
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "tunarr" "chrisbenincasa/tunarr" "singlefile" "latest" "/opt/tunarr" "*linux-x64"
msg_info "Starting ${APP}"
msg_info "Starting Service"
systemctl start tunarr
msg_ok "Started ${APP}"
msg_ok "Updated Successfully"
msg_ok "Started Service"
msg_ok "Update Successfully"
fi
if check_for_gh_release "ersatztv-ffmpeg" "ErsatzTV/ErsatzTV-ffmpeg"; then
msg_info "Stopping ${APP}"
msg_info "Stopping Service"
systemctl stop tunarr
msg_ok "Stopped ${APP}"
msg_ok "Stopped Service"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "ersatztv-ffmpeg" "ErsatzTV/ErsatzTV-ffmpeg" "prebuild" "latest" "/opt/ErsatzTV-ffmpeg" "*-linux64-gpl-7.1.tar.xz"
@ -58,10 +57,10 @@ function update_script() {
ln -sf /opt/ErsatzTV-ffmpeg/bin/ffprobe /usr/local/bin/ffprobe
msg_ok "ffmpeg links set"
msg_info "Starting ${APP}"
msg_info "Starting Service"
systemctl start tunarr
msg_ok "Started ${APP}"
msg_ok "Updated Successfully"
msg_ok "Started Service"
msg_ok "Update Successfully"
fi
exit
}