unfallkarte/setup.sh
Walter Hupfeld 6cf3a356eb kreistabelle
2023-10-07 23:30:02 +02:00

13 lines
445 B
Bash

#!/bin/bash
docker compose stop
wait
docker build -t php81:v1 php81-apache
gunzip dump/data.sql.gz
gunzip dump/district.sql.gz
cp -n config.sample.php config.php
docker compose up -d
wait
docker exec -it unfallkarte-db mysqladmin -uroot -pgeheim create unfallstatistik
docker exec -i unfallkarte-db mysql -uroot -pgeheim unfallstatistik < ./dump/data.sql
docker exec -i unfallkarte-db mysql -uroot -pgeheim unfallstatistik < ./dump/district.sql