mail-server/resources/docker/entrypoint.sh

11 lines
302 B
Bash
Raw Normal View History

2023-07-22 19:08:08 +08:00
#!/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.
2023-08-09 00:29:43 +08:00
exec /usr/local/bin/__B__ --config /opt/stalwart-mail/etc/config.toml