#!/bin/bash # Co-op Cloud wrapper around the official image's /sbin/boot. # discourse/discourse reads DISCOURSE_DB_PASSWORD from the process env (pups/Ruby; # it has no *_FILE support), so inject it from the docker secret before booting. set -e if [ -f /run/secrets/db_password ]; then export DISCOURSE_DB_PASSWORD="$(cat /run/secrets/db_password)" fi exec /sbin/boot