Skip to content

Commit

Permalink
Merge pull request #970 from srd424/disk-check-fix
Browse files Browse the repository at this point in the history
Check disk usage of filesystem hosting recordings
  • Loading branch information
ehpersonal38 authored Aug 13, 2023
2 parents fcdc99e + aeb6df2 commit 762732c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/disk_check.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/bin/env bash
set -x
used="$(df -h / | tail -n1 | awk '{print $5}')"

source /etc/birdnet/birdnet.conf
used="$(df -h ${EXTRACTED} | tail -n1 | awk '{print $5}')"

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

case $FULL_DISK in
purge) echo "Removing oldest data"
Expand Down

0 comments on commit 762732c

Please sign in to comment.