We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a84d0a3 commit 17b2725Copy full SHA for 17b2725
2 files changed
superset-db/entrypoint.sh
@@ -1,11 +1,12 @@
1
#!/usr/bin/env bash
2
3
if [ -z "$(ls -A $PGDATA)" ]; then
4
+ SETUP_PORT=5433
5
initdb -E UTF8 --locale=C
6
cp /init/pg_hba.conf /init/postgresql.conf "$PGDATA"/
- pg_ctl -w start
7
- /init/setup.sh
8
- pg_ctl -w -m smart stop
+ pg_ctl -o "-p $SETUP_PORT" -w start
+ /init/setup.sh $SETUP_PORT
9
+ pg_ctl -o "-p $SETUP_PORT" -w -m smart stop
10
fi
11
12
exec "$@"
superset-db/setup.sh
@@ -1,6 +1,6 @@
-psql << EOF
+psql -p $1 << EOF
/* Create database used to store Superset users, etc. */
CREATE DATABASE superset;
0 commit comments