mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-03 13:04:35 +08:00
Fix: add some code documentation.
This commit is contained in:
parent
6b2fa906c6
commit
0b2e8ee5a1
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue