phpservermon/entrypoint.sh.tmpl

17 lines
275 B
Bash

#!/usr/bin/env sh
set -eu
export PSM_DB_PASS=$(cat "$PSM_DB_PASS_FILE")
unset PSM_DB_PASS_FILE
apk add --no-cache msmtp
echo "sendmail_path = /usr/bin/msmtp -t -i" > /usr/local/etc/php/conf.d/sendmail.ini
if [ ! "${1-}" = "-e" ]; then
/docker-entrypoint.sh
fi
set +eu