fix: use debian base and wget for stalwart
Build Stalwart Mail Yolk / build (push) Failing after 13m20s

This commit is contained in:
2026-06-16 00:48:02 +03:00
parent 58b378b194
commit 0c5382ccbe
2 changed files with 29 additions and 14 deletions
+4 -3
View File
@@ -11,13 +11,14 @@ export TZ
cd /home/container || exit 1
# Stalwart paths
STALWART_HOME="/var/lib/stalwart-mail"
STALWART_CONFIG="/etc/stalwart-mail/config.toml"
STALWART_HOME="/opt/stalwart-mail"
STALWART_CONFIG="${STALWART_HOME}/etc/config.toml"
STALWART_BIN="${STALWART_HOME}/bin/stalwart-mail"
# Create config from template if not exists
if [ ! -f "${STALWART_CONFIG}" ]; then
echo "Generating Stalwart configuration..."
cp /entrypoint-config.toml "${STALWART_CONFIG}"
cp /opt/stalwart-mail/etc/config.toml "${STALWART_CONFIG}"
# Replace placeholders with environment variables
sed -i "s|{{MAIL_DOMAIN}}|${MAIL_DOMAIN:-mail.example.com}|g" "${STALWART_CONFIG}"