Add MAILER_TLS opt
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2025-09-30 11:24:33 +07:00
commit dc92680d32

View file

@ -1,6 +1,7 @@
#!/bin/sh
[ -n "${MAILER_HOST}" ] && sed -r "/^mailhub=/s/.*/mailhub=${MAILER_HOST}/" /etc/ssmtp/ssmtp.conf > ~/ssmtp.conf && cat ~/ssmtp.conf > /etc/ssmtp/ssmtp.conf
[ -n "${MAILER_TLS}" ] && { grep "^UseTLS=YES$" || echo "UseTLS=YES" >> ~/ssmtp.conf; } && cat ~/ssmtp.conf > /etc/ssmtp/ssmtp.conf
[ -n "${MAILER_REWRITEDOMAIN}" ] && sed -r "/^#?rewriteDomain=/s/.*/rewriteDomain=${MAILER_REWRITEDOMAIN}/" /etc/ssmtp/ssmtp.conf > ~/ssmtp.conf && cat ~/ssmtp.conf > /etc/ssmtp/ssmtp.conf
exec /sbin/tini -- $@