Skip to content
Snippets Groups Projects
clean.sh 350 B
Newer Older
  • Learn to ignore specific revisions
  • matrix.org's avatar
    matrix.org committed
    
    set -e
    
    DIR="$( cd "$( dirname "$0" )" && pwd )"
    
    
    # Ensure that the servers are stopped.
    $DIR/stop.sh
    
    
    matrix.org's avatar
    matrix.org committed
    PID_FILE="$DIR/servers.pid"
    
    
    if [ -f "$PID_FILE" ]; then
    
    matrix.org's avatar
    matrix.org committed
        echo "servers.pid exists!"
        exit 1
    fi
    
    
    for port in 8080 8081 8082; do
    
        rm -rf "${DIR:?}/$port"
        rm -rf "$DIR/media_store.$port"
    
    rm -rf "${DIR:?}/etc"