wordpress/entrypoint.mailrelay.sh.tmpl

10 lines
375 B
Cheetah
Raw Normal View History

2020-09-26 18:31:13 +00:00
#!/bin/bash
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y msmtp && rm -rf /var/lib/apt/lists/*
2020-09-27 19:27:08 +00:00
echo "sendmail_path = /usr/bin/msmtp -t -i" > /usr/local/etc/php/conf.d/sendmail.ini
2020-09-26 18:31:13 +00:00
# Upstream ENTRYPOINT
# https://github.com/docker-library/wordpress/blob/master/php7.4/apache/Dockerfile#L120
/usr/local/bin/docker-entrypoint.sh apache2-foreground "$@"