All checks were successful
continuous-integration/drone/push Build is passing
7 lines
512 B
Bash
Executable file
7 lines
512 B
Bash
Executable file
#!/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 -- $@
|