Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions servarr/servarr-install-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down
4 changes: 2 additions & 2 deletions sonarr/tips-and-tricks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Loading