chirpstack-docker/configuration/postgresql/initdb/001-chirpstack_extensions.sh
trivialkettle 07ba67ce41 Simplify postgres setup
If POSTGRES_USER, POSTGRES_PASSWORD and POSTGRES_DB are set, the
postgres container automatically creates the database and role with the
set name and password.
2024-06-19 15:13:09 +02:00

8 lines
170 B
Bash
Executable File

#!/bin/bash
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname="$POSTGRES_DB" <<-EOSQL
create extension pg_trgm;
create extension hstore;
EOSQL