aboutsummaryrefslogtreecommitdiffstats
path: root/testing/jackal/jackal.post-install
diff options
context:
space:
mode:
Diffstat (limited to 'testing/jackal/jackal.post-install')
-rw-r--r--testing/jackal/jackal.post-install12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/jackal/jackal.post-install b/testing/jackal/jackal.post-install
new file mode 100644
index 00000000000..d2714aa045a
--- /dev/null
+++ b/testing/jackal/jackal.post-install
@@ -0,0 +1,12 @@
+#!/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