mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 17:16:44 +02:00
12 lines
430 B
Bash
12 lines
430 B
Bash
#!/bin/sh
|
|
|
|
echo "--"
|
|
echo "Create a PostgreSQL database and role using /var/lib/jackal/init.sql."
|
|
echo "Be sure to set the database password in the config at /etc/jackal/config.yml."
|
|
echo "Afterwards, the schema can be created with /var/lib/jackal/postgres.up.psql."
|
|
echo "--"
|
|
|
|
export pepper=$(openssl rand -hex 12)
|
|
export dialback=$(openssl rand -hex 12)
|
|
umask 007
|
|
envsubst < /etc/jackal/config.yml.tmpl > /etc/jackal/config.yml
|