mirror of
https://github.com/anjia0532/gcr.io_mirror.git
synced 2025-09-23 12:19:22 +08:00
Update deploy.sh
This commit is contained in:
@@ -242,10 +242,10 @@ do
|
|||||||
else
|
else
|
||||||
used=$(df -h ${docker_dir}|awk '{if(NR>1)print $5}')
|
used=$(df -h ${docker_dir}|awk '{if(NR>1)print $5}')
|
||||||
echo -e "${red} duration:${duration}s, docker root dir :${docker_dir}:used:${used}"
|
echo -e "${red} duration:${duration}s, docker root dir :${docker_dir}:used:${used}"
|
||||||
[[ ${used} > '60%' ]] && docker system prune -f -a
|
[[ ${used} > '70%' ]] && docker system prune -f -a
|
||||||
sleep 10
|
sleep 10
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
sleep 120
|
sleep 30
|
||||||
echo "${red} bye bye"
|
echo "${red} bye bye"
|
||||||
|
Reference in New Issue
Block a user