fix managedb
This commit is contained in:
parent
88503ff1cf
commit
409b522f89
@ -5,8 +5,11 @@ if [[ $1 == init ]]; then
|
|||||||
mkdir -p db && initdb db
|
mkdir -p db && initdb db
|
||||||
pg_ctl -D db -l db/logfile start
|
pg_ctl -D db -l db/logfile start
|
||||||
|
|
||||||
psql -c 'CREATE EXTENSION postgis;'
|
psql postgres \
|
||||||
psql < init.sql
|
-c 'CREATE DATABASE airportgames;'
|
||||||
|
psql -d airportgames \
|
||||||
|
-c 'CREATE EXTENSION postgis;'
|
||||||
|
psql -d airportgames < init.sql
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $1 == start ]]; then
|
if [[ $1 == start ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user