#!/bin/sh
set -e
if [ -f /var/www/html/.env ]; then
    set -a; . /var/www/html/.env; set +a
fi
if [ -z "$ALTCHA_HMAC_KEY" ]; then
    export ALTCHA_HMAC_KEY="$(openssl rand -hex 32)"
    echo "Generated ALTCHA_HMAC_KEY" >&2
fi
exec "$@"
