mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-02-26 08:53:03 +08:00
11 lines
310 B
Bash
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
|