mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
10 lines
327 B
Bash
Executable file
10 lines
327 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
echo $POSTGRES_USER
|
|
echo $POSTGRES_DB
|
|
# createTables="$(cat /create_tables.psql)"
|
|
# echo $createTables
|
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
|
CREATE DATABASE shyftdb;
|
|
EOSQL
|
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" -d shyftdb < /create_tables.psql
|