unfallkarte/setup.sh
Walter Hupfeld 4971d9c221 fix
2023-10-07 12:31:45 +02:00

12 lines
450 B
Bash

#!/bin/bash
docker compose stop
docker build -t php81:v1 php81-apache
gunzip dump/data.sql.gz
gunzip dump/district.sql.gz
mkdir database
cp -n config.sample.php config.php
docker compose up -d
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