Update disk_check.sh
This commit is contained in:
@@ -9,6 +9,9 @@ if [ "${used//%}" -ge 95 ]; then
|
|||||||
purge) echo "Removing oldest data"
|
purge) echo "Removing oldest data"
|
||||||
cd ${EXTRACTED}/By_Date/
|
cd ${EXTRACTED}/By_Date/
|
||||||
curl localhost/views.php?view=Species%20Stats &>/dev/null
|
curl localhost/views.php?view=Species%20Stats &>/dev/null
|
||||||
|
if ! grep -qxFe \#\#start $HOME/BirdNET-Pi/scripts/disk_check_exclude.txt; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
filestodelete=$(($(find ${EXTRACTED}/By_Date/* -type f | wc -l) / $(find ${EXTRACTED}/By_Date/* -maxdepth 0 -type d | wc -l)))
|
filestodelete=$(($(find ${EXTRACTED}/By_Date/* -type f | wc -l) / $(find ${EXTRACTED}/By_Date/* -maxdepth 0 -type d | wc -l)))
|
||||||
iter=0
|
iter=0
|
||||||
for i in */*/*; do
|
for i in */*/*; do
|
||||||
|
|||||||
Reference in New Issue
Block a user