Skip to content

Commit 3431db8

Browse files
improve healthcheck by not requesting full list of files
1 parent 8613aa7 commit 3431db8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

apps/jellyfin/components/storage-healthcheck/healthcheck.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
curl -sf http://localhost:8096/health || exit 1
44

5-
if [ -z "$(ls -A "/media")" ]; then
5+
if ! find /media -mindepth 1 -maxdepth 1 -print -quit | grep -q .; then
66
echo "Directory is empty. Exiting with failure."
77
exit 1
8-
fi
8+
fi

apps/jellyfin/components/storage-healthcheck/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ patches:
1010
kind: StatefulSet
1111
name: jellyfin
1212
patch: |
13-
1413
- op: add
1514
path: /spec/template/spec/volumes/-
1615
value:

0 commit comments

Comments
 (0)