Skip to content

Commit

Permalink
#5: Include a way to debug the update-exim4.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
tlex committed Sep 28, 2021
1 parent e3edbd2 commit 497f9b1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ENV PORT=${PORT} BIND_IP=${BIND_IP} BIND_IP6=${BIND_IP6}

EXPOSE ${PORT}

COPY entrypoint.sh set-exim4-update-conf /bin/
COPY entrypoint.sh set-exim4-update-conf update-exim4.conf.debug /bin/

ENTRYPOINT ["/bin/entrypoint.sh"]
CMD ["exim", "-bd", "-q15m", "-v"]
2 changes: 1 addition & 1 deletion set-exim4-update-conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ if [ "${VERBOSE:-false}" == "true" ] ; then
fi

sed -ri "$sedExpr"$'\n' "$conf"
update-exim4.conf -v
update-exim4.conf.debug
10 changes: 10 additions & 0 deletions update-exim4.conf.debug
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
# update-exim4.conf.debug - Enable full verbosity in /usr/sbin/update-exim4.conf

if [ "${VERBOSE:-false}" = "true" ]; then
set -x
. /usr/sbin/update-exim4.conf
else
exec /usr/sbin/update-exim4.conf -v
fi

0 comments on commit 497f9b1

Please sign in to comment.