#!/bin/bash # quick fix, will automate later LOG_DIR=$(cat /etc/app/logdir) cd $LOG_DIR rm -rf * echo "freed: $(df -h / | tail -1)"