We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f54ff9f commit 36e26a9Copy full SHA for 36e26a9
1 file changed
entrypoint.sh
@@ -52,15 +52,18 @@ write_dma_auth () {
52
${DMA_AUTHPATH="/etc/dma/auth.conf"}
53
export DMA_SMARTHOST DMA_PORT DMA_AUTHPATH
54
55
+# set default command
56
+[ "${1#-}" = "$1" ] || set -- msmtpd "$@"
57
+
58
write_dma_conf
59
case "$1" in
60
dma|mailq|msmtpd|newaliases|sendmail) verify_dma_conf ;;
61
esac
62
63
write_dma_auth
64
-if [ "$1" = "msmtpd" ] || [ "${1#-}" != "$1" ]; then
- [ "${1#-}" != "$1" ] || shift
65
+if [ "$1" = "msmtpd" ]; then
66
+ shift
67
set -- tini -- msmtpd \
68
--interface 0.0.0.0 \
69
--log /dev/stdout \
0 commit comments