#!/bin/sh set -e cd $(realpath $(dirname "${0}"))/setup # Check prerequisites [ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1 # Populate database export SEEDDMS_PWD=$(head -c 18 /dev/urandom | base64) envsubst /srv/seeddms/conf/settings.xml export SEEDDMS_ADMIN_USER=admin export SEEDDMS_ADMIN_PWD=$(head -c 12 /dev/urandom | base64) export SEEDDMS_ADMIN_EMAIL=admin@example.com envsubst