mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-09-20 03:16:42 +00:00
15 lines
409 B
Bash
Executable File
15 lines
409 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "\n=== SETUP DATABASE ===\n"
|
|
|
|
#set -e
|
|
#set -x
|
|
|
|
# Setup postgres' users and databases
|
|
sudo -u postgres psql -c "CREATE USER unit WITH PASSWORD 'unit';"
|
|
sudo -u postgres psql -c 'CREATE DATABASE unit WITH OWNER unit;'
|
|
sudo -u postgres psql unit -c 'CREATE EXTENSION hstore;'
|
|
sudo -u postgres psql unit -c 'CREATE EXTENSION pgcrypto;'
|
|
#sudo -u postgres psql test2 -c 'CREATE EXTENSION postgis;'
|
|
|