aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/storage/files/get_var_size.sh
blob: 6f690375cedf97d74ef8c25fe3129b67445d43de (plain)
1
2
3
4
5
6
size=`df /var | awk '$3 ~ /[0-9]+/ { print $4 }'`;
if [ $size -gt 2000000000 ]; then
  echo -n 2000000000000;
else
  echo -n $((size * 1000 / 512 * 512));
fi