From 0b2e8ee5a198ec98a084800de081c639394ed364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bojan=20=C4=8Cekrli=C4=87?= Date: Sun, 26 Jan 2025 16:48:29 +0100 Subject: [PATCH] Fix: add some code documentation. --- build-scripts/postfix-install.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build-scripts/postfix-install.sh b/build-scripts/postfix-install.sh index bd8c8c2..ed3c9b7 100644 --- a/build-scripts/postfix-install.sh +++ b/build-scripts/postfix-install.sh @@ -5,6 +5,9 @@ if [ -f /etc/os-release ]; then . /etc/os-release fi +# Installs postfix, opendkim, and other required packages using the +# Alpine package manager. This function is called when the image is +# built on an Alpine base image. do_alpine() { apk update apk add --upgrade cyrus-sasl cyrus-sasl-static cyrus-sasl-digestmd5 cyrus-sasl-crammd5 cyrus-sasl-login cyrus-sasl-ntlm libsasl @@ -14,6 +17,9 @@ do_alpine() { } +# Installs postfix, opendkim, and other required packages using the +# ubuntu/debian package manager. This function is called when the +# image is built on a ubuntu/debian base image. do_ubuntu() { RELEASE_SPECIFIC_PACKAGES="" export DEBCONF_NOWARNINGS=yes @@ -38,10 +44,10 @@ else do_ubuntu fi -# Some services (eg. cron) will complain if this file does not exists, even if it's empty +# Some services (eg. cron) will complain if this file does not exists, even if it's empty. # The file is usually generated by update-locales, which is ran automatically when you do # `apt-get install locales`. So instead of adding another package, which at the moment we -# do not need, we just create a simple "empty" file instead and hope to keep cron happy. +# do not need, we just create a simple empty file instead and hope to keep cron happy. mkdir -p /etc/default/ echo "# File generated by postfix-install.sh" > /etc/default/locale