Skip to content
Snippets Groups Projects
Commit 0b628fb3 authored by Martin Mareš's avatar Martin Mareš
Browse files

test-init: Vyžaduje explicitní zadání jména DB

... abychom si omylem nepřepsali produkční DB při resetu testovací ;)
parent 8999968c
Branches
No related tags found
No related merge requests found
#!/bin/bash
set -e
psql mo_osmo <db/drop-all.sql
psql mo_osmo <db/db.ddl
if [ $# != 1 ] ; then
echo >&2 "Použití: $0 <jméno-db>"
exit 1
fi
DB=$1
psql $DB <db/drop-all.sql
psql $DB <db/db.ddl
bin/init-regions
bin/init-schools
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment