mastodon/entrypoint.sh.tmpl

13 lines
301 B
Bash

#!/bin/bash
set -eu
export DB_PASS=$(cat /run/secrets/db_password)
export OTP_SECRET=$(cat $OTP_SECRET_FILE)
export SECRET_KEY_BASE=$(cat $SECRET_KEY_BASE_FILE)
export VAPID_PRIVATE_KEY=$(cat $VAPID_PRIVATE_KEY_FILE)
sed -i '/- admin$/d' /opt/mastodon/config/settings.yml
/usr/bin/tini -s -- "$@"