diff --git a/Dockerfile b/Dockerfile index 46a44bc..453103d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,8 @@ RUN apk add --no-cache \ nagios-plugins-tcp \ nagios-web \ nrpe-plugin \ - ssmtp && \ + ssmtp \ + tini && \ chown nagios /etc/ssmtp/ssmtp.conf COPY FREE_send_notification.sh /usr/bin/FREE_send_notification.sh diff --git a/entrypoint.sh b/entrypoint.sh index 0358815..f70524a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,4 +3,4 @@ [ -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_REWRITEDOMAIN}" ] && sed -r "/^#?rewriteDomain=/s/.*/rewriteDomain=${MAILER_REWRITEDOMAIN}/" /etc/ssmtp/ssmtp.conf > ~/ssmtp.conf && cat ~/ssmtp.conf > /etc/ssmtp/ssmtp.conf -exec $@ +exec /sbin/tini -- $@