Add an entrypoint to configure ssmtp

This commit is contained in:
nemunaire 2022-01-30 18:34:49 +01:00
commit 87eb526eb5
2 changed files with 11 additions and 1 deletions

5
entrypoint.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
[ -n "${MAILER_HOST}" ] && sed -r -i "/^mailhub=/s/.*/mailhub=${MAILER_HOST}/" /etc/ssmtp/ssmtp.conf
exec $@