chirpstack-docker/configuration/postgresql/initdb/003-init-integrationdb.sh
2023-12-05 13:19:54 +02:00

9 lines
285 B
Bash

#!/bin/bash
set -e
# PostgreSQL commands to create a new role and database for ChirpStack
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
create role chirpstack with login password 'chirpstack';
create database chirpstack_integration with owner chirpstack;
EOSQL