From 315605092c7476ff797317acb90ed08df5a4e443 Mon Sep 17 00:00:00 2001 From: Patrick McGuire <60325264+mcguirepr89@users.noreply.github.com> Date: Tue, 25 Jan 2022 08:38:11 -0500 Subject: [PATCH] Update disk_check.sh --- scripts/disk_check.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/disk_check.sh b/scripts/disk_check.sh index 0d77e84..c73cc2f 100755 --- a/scripts/disk_check.sh +++ b/scripts/disk_check.sh @@ -13,3 +13,11 @@ if [ "${used//%}" -ge 95 ]; then /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" + rm -rfv ${PROCESSED}/* + *) echo "Stopping Core Services" + /usr/local/bin/stop_core_services.sh;; + esac