Update urlextractor_archiveteam.sh

This commit is contained in:
datechnoman 2023-12-06 10:35:31 +00:00
parent 0a3cfd1008
commit adc15ec579

View File

@ -3,10 +3,10 @@
check_disk_space() {
while true; do
available_space=$(df -BG /dev/sda1 | awk 'NR==2 {print $4}' | tr -d 'G')
if [ "$available_space" -ge 20 ]; then
if [ "$available_space" -ge 30 ]; then
break
else
echo "Waiting for more than 20GB free space on /dev/sda1. Current available space: ${available_space}GB"
echo "Waiting for more than 30GB free space on /dev/sda1. Current available space: ${available_space}GB"
sleep 300 # Sleep for 5 minutes
fi
done