chirpstack-docker/configuration/postgresql/initdb/001-init-chirpstack.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
202 B
Bash
Executable File

#!/bin/bash
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
create role chirpstack with login password 'chirpstack';
create database chirpstack with owner chirpstack;
EOSQL