aports/testing/jackal/jackal.post-install
Sam Whited 41651f029f testing/jackal: new aport
Signed-off-by: Sam Whited <sam@samwhited.com>
2022-08-01 10:01:22 +00:00

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