Skip to content
This repository was archived by the owner on Aug 17, 2025. It is now read-only.

Commit aeb6df2

Browse files
committed
Check the disk usage of the filesystem hosting the processed
recordings, not necessarily the root filesystem
1 parent c85fa1e commit aeb6df2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/disk_check.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/usr/bin/env bash
22
set -x
3-
used="$(df -h / | tail -n1 | awk '{print $5}')"
3+
4+
source /etc/birdnet/birdnet.conf
5+
used="$(df -h ${EXTRACTED} | tail -n1 | awk '{print $5}')"
46

57
if [ "${used//%}" -ge 95 ]; then
6-
source /etc/birdnet/birdnet.conf
78

89
case $FULL_DISK in
910
purge) echo "Removing oldest data"

0 commit comments

Comments
 (0)