Update deploy.sh

This commit is contained in:
AnJia 2018-11-01 00:15:47 +08:00 committed by GitHub
parent fc02a01a17
commit addbeb2c31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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"