Update install.sh

This commit is contained in:
Maurus Decimus
2026-04-19 09:30:35 +02:00
parent af23099e35
commit e3399a2a22
8 changed files with 311 additions and 369 deletions

View File

@@ -49,4 +49,4 @@ RUN useradd stalwart -s /sbin/nologin -M
RUN mkdir -p /opt/stalwart
RUN chown stalwart:stalwart /opt/stalwart
ENTRYPOINT ["/usr/local/bin/stalwart", "--config", "/opt/stalwart/etc/config.toml"]
ENTRYPOINT ["/usr/local/bin/stalwart", "--config", "/opt/stalwart/etc/config.json"]

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env sh
# shellcheck shell=dash
# If the configuration file exists, start the server.
exec /usr/local/bin/stalwart --config /opt/stalwart/etc/config.json

View File

@@ -1,7 +1,7 @@
[Unit]
Description=Stalwart Server
Conflicts=postfix.service sendmail.service exim4.service
ConditionPathExists=__PATH__/etc/config.toml
ConditionPathExists=__PATH__/etc/config.json
After=network-online.target
[Service]
@@ -11,7 +11,7 @@ KillMode=process
KillSignal=SIGINT
Restart=on-failure
RestartSec=5
ExecStart=__PATH__/bin/stalwart --config=__PATH__/etc/config.toml
ExecStart=__PATH__/bin/stalwart --config=__PATH__/etc/config.json
SyslogIdentifier=stalwart
User=stalwart
Group=stalwart

View File

@@ -10,7 +10,7 @@
<key>ProgramArguments</key>
<array>
<string>__PATH__/bin/stalwart</string>
<string>--config=__PATH__/etc/config.toml</string>
<string>--config=__PATH__/etc/config.json</string>
</array>
<key>RunAtLoad</key>
<true/>