mail-server/resources/docker/entrypoint.sh
2023-07-22 13:08:08 +02:00

11 lines
310 B
Bash

#!/usr/bin/env sh
# shellcheck shell=dash
# If the configuration file does not exist wait until it does.
while [ ! -f /opt/stalwart-mail/etc/config.toml ]; do
sleep 1
done
# If the configuration file exists, start the server.
exec /usr/local/bin/stalwart-mail --config /opt/stalwart-mail/etc/config.toml