Spaces:
Paused
Paused
Update entrypoint.sh
Browse files- entrypoint.sh +1 -1
entrypoint.sh
CHANGED
|
@@ -19,7 +19,7 @@ pg_ctl start -l "${PGDATA}/postgres.log" \
|
|
| 19 |
# ββ Create user and database if they don't exist βββββββββββββββββββββ
|
| 20 |
if ! psql -h "${PGHOST}" -p "${PG_PORT}" -U sekai -d sekai -c '\q' 2>/dev/null; then
|
| 21 |
echo "Creating sekai user and database..."
|
| 22 |
-
psql -h "${PGHOST}" -p "${PG_PORT}" -d postgres -c "CREATE USER sekai;"
|
| 23 |
psql -h "${PGHOST}" -p "${PG_PORT}" -d postgres -c "CREATE DATABASE sekai OWNER sekai;"
|
| 24 |
fi
|
| 25 |
|
|
|
|
| 19 |
# ββ Create user and database if they don't exist βββββββββββββββββββββ
|
| 20 |
if ! psql -h "${PGHOST}" -p "${PG_PORT}" -U sekai -d sekai -c '\q' 2>/dev/null; then
|
| 21 |
echo "Creating sekai user and database..."
|
| 22 |
+
# psql -h "${PGHOST}" -p "${PG_PORT}" -d postgres -c "CREATE USER sekai;"
|
| 23 |
psql -h "${PGHOST}" -p "${PG_PORT}" -d postgres -c "CREATE DATABASE sekai OWNER sekai;"
|
| 24 |
fi
|
| 25 |
|