clean.sh 248 B

1234567891011121314151617
  1. #!/bin/bash
  2. set -e
  3. DIR="$( cd "$( dirname "$0" )" && pwd )"
  4. PID_FILE="$DIR/servers.pid"
  5. if [ -f $PID_FILE ]; then
  6. echo "servers.pid exists!"
  7. exit 1
  8. fi
  9. find "$DIR" -name "*.log" -delete
  10. find "$DIR" -name "*.db" -delete
  11. rm -rf $DIR/etc