docker-nagios/entrypoint.sh
Pierre-Olivier Mercier 9ff7bd0781
All checks were successful
continuous-integration/drone/push Build is passing
Allow nagios to change ssmtp config
2022-02-05 23:23:51 +01:00

6 lines
177 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
exec $@