More work
This commit is contained in:
1 parent
9d018e00be
commit
add153d8a6
98 files changed
+18520
-333
No files matched your search
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
echo "start db setup"
|
||||
|
||||
if [ -z "$PGSQL_HOST" ]; then
|
||||
echo "Note: Postgresql not set!!"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
export PGSQL_PORT="${PGSQL_PORT:-5432}"
|
||||
|
||||
wait-for-it --timeout=15 "$PGSQL_HOST:$PGSQL_PORT"
|
||||
|
||||
# Create schema in postgresql
|
||||
export PGPASSWORD="$PGSQL_PASSWORD"
|
||||
psql -1 -h "$PGSQL_HOST" -p "$PGSQL_PORT" -U "$PGSQL_USER" -d "$PGSQL_NAME" -f max/db/schema.sql
|
||||
|
||||
echo "end db setup"
|
||||
Reference in new issue
Block a user