chirpstack/.docker-compose/postgresql/initdb/0001-init_chirpstack.sh

8 lines
202 B
Bash
Raw Normal View History

2022-04-06 20:18:32 +00:00
#!/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