Upgrade: improvements to migrations

This commit is contained in:
Bojan Čekrlić 2021-05-18 22:51:57 +02:00
parent 77cee99643
commit c6e9a2e4a9
2 changed files with 5 additions and 2 deletions

View file

@ -25,7 +25,8 @@ RUN true && \
apk add --no-cache postfix && \
apk add --no-cache opendkim && \
apk add --no-cache --upgrade ca-certificates tzdata supervisor rsyslog musl musl-utils bash opendkim-utils libcurl jsoncpp lmdb && \
(rm "/tmp/"* 2>/dev/null || true) && (rm -rf /var/cache/apk/* 2>/dev/null || true)
(rm "/tmp/"* 2>/dev/null || true) && (rm -rf /var/cache/apk/* 2>/dev/null || true) && \
cp -r /etc/postfix /etc/postfix.template
# Copy SASL-XOAUTH2 plugin
COPY --from=build /sasl-xoauth2/build/src/libsasl-xoauth2.so /usr/lib/sasl2/

View file

@ -7,7 +7,9 @@ set -e
announce_startup # Print startup banner
setup_timezone # Check if we need to configure the container timezone
rsyslog_log_format # Setup rsyslog output format
reown_folders # Make and reown postfix folders
setup_conf # Copy over files from /etc/postfix.template to /etc/postfix, if the user mounted the folder manually
reown_folders # Make and reown /var/spool/postfix/ folders
postfix_upgrade_conf # Upgrade old coniguration, replace "hash:" and "btree:" databases to "lmdb:"
postfix_disable_utf8 # Disable SMTPUTF8, because libraries (ICU) are missing in alpine
postfix_create_aliases # Update aliases database. It's not used, but postfix complains if the .db file is missing
postfix_disable_local_mail_delivery # Disable local mail delivery