docker-nagios/entrypoint.sh

6 lines
177 B
Bash
Raw Normal View History

2022-01-30 17:34:49 +00:00
#!/bin/sh
2022-01-30 18:38:57 +00:00
[ -n "${MAILER_HOST}" ] && sed -r "/^mailhub=/s/.*/mailhub=${MAILER_HOST}/" /etc/ssmtp/ssmtp.conf > ~/ssmtp.conf && cat ~/ssmtp.conf > /etc/ssmtp/ssmtp.conf
2022-01-30 17:34:49 +00:00
exec $@