fix: use debian base and wget for stalwart
Build Stalwart Mail Yolk / build (push) Failing after 13m20s
Build Stalwart Mail Yolk / build (push) Failing after 13m20s
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user