blob: c633cd9af0d6492aee8b0f71b70a0e2d6fa300f8 [file] [log] [blame]
#!/bin/bash
echo -e "\n Before clean up disk usage: \n"
df -h
cd /home/sdn/OnosSystemTest/TestON/logs
if [ $? -eq 0 ]
then
echo "Checking if there are logs older than ${DAYS_OLD} days...."
for i in $(find . -mtime +${DAYS_OLD} -type d)
do
echo -e "DIRs older than $DAYS_OLD are: "
echo $i
rm -rf $i
done
fi
echo -e "\n After clean up disk usage:\n"
df -h