mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2024-11-15 13:54:41 +08:00
10 lines
349 B
Bash
10 lines
349 B
Bash
#!/usr/bin/env sh
|
|
# shellcheck shell=dash
|
|
|
|
# If the configuration file does not exist initialize it.
|
|
if [ ! -f /opt/stalwart-mail/etc/config.toml ]; then
|
|
/usr/local/bin/stalwart-mail --init /opt/stalwart-mail
|
|
fi
|
|
|
|
# If the configuration file exists, start the server.
|
|
exec /usr/local/bin/stalwart-mail --config /opt/stalwart-mail/etc/config.toml
|