chirpstack-docker/configuration/postgresql/initdb/002-chirpstack_extensions.sh
dloftus98 79ccbd4d09
Set execution bit for PostgreSQL initdb.d scripts. (#61)
On some environments the initial `docker-compose up` would throw a "bad interpreter: Permission denied" error on PostgreSQL initialization.

Fixes #60.

Co-authored-by: dloftu389_comcast <daniel_loftus@machineq.com>
2022-08-29 16:27:47 +01:00

8 lines
168 B
Bash
Executable File

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