From e48bf711ee02094a607f66709cc53606557124f8 Mon Sep 17 00:00:00 2001 From: gawells Date: Fri, 28 Nov 2025 12:15:40 -0500 Subject: [PATCH] Add entry point --- Stalwart/resources/docker/entrypoint.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Stalwart/resources/docker/entrypoint.sh diff --git a/Stalwart/resources/docker/entrypoint.sh b/Stalwart/resources/docker/entrypoint.sh new file mode 100644 index 0000000..0439cc4 --- /dev/null +++ b/Stalwart/resources/docker/entrypoint.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env sh +# this file was taken directly from the stalwart entry point.sh + +# check if there is a config already +if [ ! -f /opt/stalwart/etc/config.toml ]; then + # if not then make a new one + /usr/local/bin/stalwart --init /opt/stalwart +fi + +# if there is a config run the old one +exec /usr/local/bin/stalwart --config /opt/stalwart/etc/config.toml \ No newline at end of file