Skip to content

Commit

Permalink
fix pgsql error
Browse files Browse the repository at this point in the history
  • Loading branch information
charithmadhuranga committed Oct 10, 2024
1 parent c2a843f commit da3dbeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ service redis-server start
/usr/local/bin/wait-for-postgres.sh
# Configure PostgreSQL: Set password and create database if it doesn't exist
su - postgres -c 'psql -c "ALTER USER postgres PASSWORD '\''postgres'\'';"'
su - postgres -c "psql -c \"SELECT 'CREATE DATABASE vinsight' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'vinsight')\\gexec\""
# su - postgres -c "psql -c \"SELECT 'CREATE DATABASE vinsight' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'vinsight')\\gexec\""
# Start Gunicorn server for Superset
exec gunicorn superset.app:create_app()

0 comments on commit da3dbeb

Please sign in to comment.