Skip to content

Commit eb65eda

Browse files
committed
use the script path instead of a boolean
1 parent d2c3762 commit eb65eda

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docker/docker-entrypoint.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ pg_sync_password() {
1616
ALTER USER supabase_admin WITH PASSWORD :'pgpass';
1717
EOSQL
1818

19-
# execute the roles SQL file using docker_process_sql
20-
docker_process_sql -f /docker-entrypoint-initdb.d/init-scripts/99-roles.sql
19+
docker_process_sql -f "${ROLES_INIT_SCRIPT_PATH}"
2120

2221
docker_temp_server_stop
2322
unset PGPASSWORD
@@ -72,7 +71,7 @@ _main() {
7271
EOM
7372
fi
7473

75-
if [ -n "${SUPABASE_SELF_HOSTING:-}" ]; then
74+
if [ -n "${ROLES_INIT_SCRIPT_PATH:-}" ]; then
7675
pg_sync_password "$@"
7776
fi
7877
fi

0 commit comments

Comments
 (0)