refining some forms and chaning FULL_DISK to words settings

This commit is contained in:
mcguirepr89
2022-01-31 16:00:02 -05:00
parent f75cd9afe3
commit 11c09dd9f4
7 changed files with 53 additions and 373 deletions
+4 -4
View File
@@ -6,19 +6,19 @@ if [ "${used//%}" -ge 95 ]; then
source /etc/birdnet/birdnet.conf
case $FULL_DISK in
0) echo "Removing oldest data"
purge) echo "Removing oldest data"
rm -drfv "$(find ${EXTRACTED}/By_Date/* -maxdepth 1 -type d -prune \
| sort -r | tail -n1)";;
*) echo "Stopping Core Services"
keep) echo "Stopping Core Services"
/usr/local/bin/stop_core_services.sh;;
esac
fi
sleep 1
if [ "${used//%}" -ge 95 ]; then
case $FULL_DISK in
0) echo "Removing more data"
purge) echo "Removing more data"
rm -rfv ${PROCESSED}/*;;
*) echo "Stopping Core Services"
keep) echo "Stopping Core Services"
/usr/local/bin/stop_core_services.sh;;
esac
fi