From e4a4329d1a70ec327c81c5a278aff1ec5a50a10f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Sun, 1 Feb 2026 13:27:59 +0100 Subject: [PATCH] Refactor: Whisparr (#11411) * Refactor * use default msg --------- Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> --- ct/whisparr.sh | 7 ++----- install/whisparr-install.sh | 15 +++++++-------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/ct/whisparr.sh b/ct/whisparr.sh index 2423c0202..91485c4fa 100644 --- a/ct/whisparr.sh +++ b/ct/whisparr.sh @@ -27,11 +27,8 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - msg_info "Updating Whisparr" - $STD apt update - $STD apt -y upgrade - msg_ok "Updated Whisparr" - msg_ok "Updated successfully!" + + msg_custom "🚀" "${GN}" "The app offers a built-in updater. Please use it." exit } diff --git a/install/whisparr-install.sh b/install/whisparr-install.sh index 38d5f790b..f87a29115 100644 --- a/install/whisparr-install.sh +++ b/install/whisparr-install.sh @@ -17,22 +17,20 @@ msg_info "Installing Dependencies" $STD apt install -y sqlite3 msg_ok "Installed Dependencies" -msg_info "Installing Whisparr" +fetch_and_deploy_from_url "https://whisparr.servarr.com/v1/update/nightly/updatefile?os=linux&runtime=netcore&arch=x64" /opt/Whisparr + +msg_info "Configuring Whisparr" mkdir -p /var/lib/whisparr/ chmod 775 /var/lib/whisparr/ -cd /var/lib/whisparr/ -$STD curl -fsSL 'https://whisparr.servarr.com/v1/update/nightly/updatefile?os=linux&runtime=netcore&arch=x64' -o whisparr.tar.gz -$STD tar -xvzf whisparr.tar.gz -mv Whisparr /opt chmod 775 /opt/Whisparr -rm -rf Whisparr.develop.*.tar.gz -msg_ok "Installed Whisparr" +msg_ok "Configured Whisparr" msg_info "Creating Service" cat </etc/systemd/system/whisparr.service [Unit] Description=whisparr Daemon After=syslog.target network.target + [Service] UMask=0002 Type=simple @@ -40,10 +38,11 @@ ExecStart=/opt/Whisparr/Whisparr -nobrowser -data=/var/lib/whisparr/ TimeoutStopSec=20 KillMode=process Restart=on-failure + [Install] WantedBy=multi-user.target EOF -systemctl enable --now -q whisparr +systemctl enable -q --now whisparr msg_ok "Created Service" motd_ssh