From 8fabaf808b9fb0b6de1d6bda6f0d5c8491c3bb81 Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Fri, 4 Sep 2026 17:05:58 -0500 Subject: [PATCH 1/2] docs(sonarr): fix Windows PowerShell folder-creation snippet Use a trailing pipe in the tips-and-tricks PowerShell snippet; the leading-pipe continuation is invalid in Windows PowerShell 5.1. --- sonarr/tips-and-tricks.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonarr/tips-and-tricks.md b/sonarr/tips-and-tricks.md index 22a4456d1..734e7d298 100644 --- a/sonarr/tips-and-tricks.md +++ b/sonarr/tips-and-tricks.md @@ -55,8 +55,8 @@ find . -maxdepth 1 -type f \( -iname "*.mkv" -o -iname "*.mp4" \) -exec sh -c 'm Alternatively in Windows you can run the following script in Powershell to iterate over each file in a directory, and move it to a folder with the same name. ```powershell -Get-ChildItem -File - | ForEach-Object { +Get-ChildItem -File | + ForEach-Object { $dir = New-Item -ItemType Directory -Name $_.BaseName -Force $_ | Move-Item -Destination $dir } From 666fdc390e5a5dc2a8359f3df4daefcdefa4b66b Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Fri, 4 Sep 2026 17:12:32 -0500 Subject: [PATCH 2/2] fix(install-script): time out the service-active wait loop The post-install loop waited on `systemctl is-active` with no exit, so a service that never starts (for example a missing libicu dependency) looped forever. Add a 15-attempt guard that reports the failure and exits 1. Cherry-picked from community PR #460. --- servarr/servarr-install-script.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/servarr/servarr-install-script.sh b/servarr/servarr-install-script.sh index dff44fd97..0b9730fe3 100644 --- a/servarr/servarr-install-script.sh +++ b/servarr/servarr-install-script.sh @@ -360,8 +360,15 @@ echo "" echo "Checking if the service is up and running..." # Loop to wait until the service is active +attempts=0 while ! systemctl is-active --quiet "$app"; do sleep 1 + attempts=$((attempts + 1)) + if [ "$attempts" -gt 15 ]; then + echo "" + echo -e "${brown}[${app^}]${reset} service failed to start within 15 seconds. Check 'journalctl -u $app -e' for details." + exit 1 + fi done echo ""