mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-02-26 00:43:31 +08:00
10 lines
368 B
Bash
10 lines
368 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 ] || grep -q "__CERT_PATH__" /opt/stalwart-mail/etc/common/tls.toml; do
|
|
sleep 1
|
|
done
|
|
|
|
# If the configuration file exists, start the server.
|
|
exec /usr/local/bin/__B__ --config /opt/stalwart-mail/etc/config.toml
|