chirpstack-docker/configuration/postgresql/initdb/003-init-integrationdb.sh

8 lines
224 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 database chirpstack_integration with owner chirpstack;
EOSQL