Skip to content

Commit 762732c

Browse files
authored
Merge pull request #970 from srd424/disk-check-fix
Check disk usage of filesystem hosting recordings
2 parents fcdc99e + aeb6df2 commit 762732c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/disk_check.sh

+3-2
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)