Skip to content

Commit bdb8f86

Browse files
committed
Upd: Upgrade distro versions + fix a few typos
1 parent 994d4ae commit bdb8f86

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

build-scripts/postfix-install.sh

+4-6
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,20 @@ do_alpine() {
1010
apk add --upgrade cyrus-sasl cyrus-sasl-static cyrus-sasl-digestmd5 cyrus-sasl-crammd5 cyrus-sasl-login cyrus-sasl-ntlm libsasl
1111
apk add postfix postfix-pcre postfix-ldap
1212
apk add opendkim
13-
apk add --upgrade ca-certificates tzdata supervisor rsyslog musl musl-utils bash opendkim-utils libcurl jsoncpp lmdb logrotate netcat-openbsd
13+
apk add --upgrade ca-certificates tzdata supervisor rsyslog musl musl-utils bash opendkim-utils libcurl jsoncpp lmdb logrotate netcat-openbsd colorized-logs
1414
}
1515

16+
1617
do_ubuntu() {
17-
RELEASE_SPECIFIC_PACKAGES="netcat"
18-
if [ "${ID}" = "debian" ]; then
19-
RELEASE_SPECIFIC_PACKAGES="netcat-openbsd"
20-
fi
18+
RELEASE_SPECIFIC_PACKAGES=""
2119
export DEBCONF_NOWARNINGS=yes
2220
export DEBIAN_FRONTEND=noninteractive
2321
echo "Europe/Berlin" > /etc/timezone
2422
apt-get update -y -q
2523
apt-get install -y libsasl2-modules sasl2-bin
2624
apt-get install -y postfix postfix-pcre postfix-ldap
2725
apt-get install -y opendkim
28-
apt-get install -y ca-certificates tzdata supervisor rsyslog bash opendkim-tools curl libcurl4 libjsoncpp25 sasl2-bin postfix-lmdb procps logrotate cron net-tools ${RELEASE_SPECIFIC_PACKAGES}
26+
apt-get install -y ca-certificates tzdata supervisor rsyslog bash opendkim-tools curl libcurl4 libjsoncpp25 sasl2-bin postfix-lmdb procps logrotate cron net-tools colorized-logs netcat-openbsd ${RELEASE_SPECIFIC_PACKAGES}
2927
apt-get clean
3028
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
3129
}

scripts/run.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ setup_conf # Copy over files from /etc/postfix.temp
1515
reown_folders # Make and reown /var/spool/postfix/ folders
1616
postfix_enable_chroot # Allow Postfix to run in chroot
1717
postfix_upgrade_default_database_type # Compatibility layer. Debian still uses 'hash:', but newer distributions use 'lmbd:'
18-
postfix_upgrade_conf # Upgrade old coniguration, replace "hash:" and "btree:" databases to "lmdb:"
18+
postfix_upgrade_conf # Upgrade old configuration, replace "hash:" and "btree:" databases to "lmdb:"
1919
postfix_upgrade_daemon_directory # Change the 'daemon_directory' postfix configuration, if a change is detected from Alpine<->Debian/Ubuntu
2020
postfix_disable_utf8 # Disable SMTPUTF8, because libraries (ICU) are missing in alpine
2121
postfix_create_aliases # Update aliases database. It's not used, but postfix complains if the .db file is missing
@@ -28,14 +28,14 @@ postfix_set_hostname # Set up host name
2828
postfix_set_relay_tls_level # Set TLS level security for relays
2929
postfix_setup_xoauth2_pre_setup # (Pre) Setup XOAUTH2 authentication
3030
postfix_setup_relayhost # Setup a relay host, if defined
31-
postfix_setup_xoauth2_post_setup # (Post) Setup XOAUTH2 autentication
31+
postfix_setup_xoauth2_post_setup # (Post) Setup XOAUTH2 authentication
3232
postfix_setup_networks # Set MYNETWORKS
3333
postfix_setup_debugging # Enable debugging, if defined
3434
postfix_setup_sender_domains # Configure allowed sender domains
3535
postfix_setup_masquarading # Setup masquaraded domains
3636
postfix_setup_header_checks # Enable SMTP header checks, if defined
3737
postfix_setup_dkim # Configure DKIM, if enabled
38-
postfix_setup_smtpd_sasl_auth # Enable sender sasl auth, if defined
38+
postfix_setup_smtpd_sasl_auth # Enable sender SASL auth, if defined
3939
postfix_custom_commands # Apply custom postfix settings
4040
opendkim_custom_commands # Apply custom OpenDKIM settings
4141
postfix_open_submission_port # Enable the submission port

0 commit comments

Comments
 (0)