#!/bin/bash

docker-compose down 
docker system prune -f
docker-compose up -d 
sleep 30 
./dodb

# if directory dompdf doesn't exist, make it by downloading; 
# otherwise, do nothing
if [ ! -d "application/libraries/dompdf" ]; then
wget https://github.com/dompdf/dompdf/releases/download/v2.0.4/dompdf-2.0.4.zip
unzip -d application/libraries dompdf-2.0.4.zip
rm dompdf-2.0.4.zip
fi