blob: 5a5651c6f5a18d847982580eb29da6de35af1a9d [file] [log] [blame]
#!/bin/bash
echo -e "\n Before clean up disk usage: \n"
df -h
cd /home/{user}/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