1
0
mirror of https://github.com/docker-mailserver/docker-mailserver.git synced 2025-08-07 23:03:10 +02:00

chore: switch to .sourced format for APT

Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
Georg Lauterbach
2025-08-02 14:56:24 +02:00
parent a888dfa023
commit 88799ac30a

View File

@ -165,10 +165,15 @@ function _install_dovecot() {
# - 2.3.21: https://salsa.debian.org/debian/dovecot/-/tree/stable/bookworm-backports # - 2.3.21: https://salsa.debian.org/debian/dovecot/-/tree/stable/bookworm-backports
_log 'trace' 'Adding third-party package repository (Dovecot)' _log 'trace' 'Adding third-party package repository (Dovecot)'
curl -fsSL https://repo.dovecot.org/DOVECOT-REPO-GPG-2.4 | gpg --dearmor > /usr/share/keyrings/upstream-dovecot.gpg curl -fsSL https://repo.dovecot.org/DOVECOT-REPO-GPG-2.4 \
echo \ | gpg --dearmor >/usr/share/keyrings/upstream-dovecot.gpg
"deb [signed-by=/usr/share/keyrings/upstream-dovecot.gpg] https://repo.dovecot.org/ce-2.4-latest/debian/${VERSION_CODENAME} ${VERSION_CODENAME} main" \ cat >/etc/apt/sources.list.d/upstream-dovecot.sources <<EOF
> /etc/apt/sources.list.d/upstream-dovecot.list Types: deb
URIs: https://repo.dovecot.org/ce-2.4-latest/debian/${VERSION_CODENAME}
Suites: ${VERSION_CODENAME}
Components: main
Signed-By: /usr/share/keyrings/upstream-dovecot.gpg
EOF
# Refresh package index: # Refresh package index:
apt-get "${QUIET}" update apt-get "${QUIET}" update
@ -186,20 +191,24 @@ function _install_dovecot() {
} }
function _install_rspamd() { function _install_rspamd() {
# NOTE: DMS only supports the rspamd package via using the third-party repo maintained by Rspamd (AMD64 + ARM64): # NOTE: DMS only supports the rspamd package via using the third-party
# Repo: https://rspamd.com/apt-stable/dists/bookworm/main/ # repo maintained by Rspamd (AMD64 + ARM64):
# Docs: https://rspamd.com/downloads.html#debian-and-ubuntu-linux # ref: https://rspamd.com/downloads.html#debian-and-ubuntu-linux
# NOTE: Debian 12 provides Rspamd 3.4 (too old) and Rspamd discourages it's use
# TODO (Debian 13) re-enable later # TODO (Debian 13) re-enable later
# _log 'trace' 'Adding third-party package repository (Rspamd)' _log 'trace' 'Adding third-party package repository (Rspamd)'
# curl -fsSL https://rspamd.com/apt-stable/gpg.key | gpg --dearmor > /usr/share/keyrings/upstream-rspamd.gpg curl -fsSL https://rspamd.com/apt-stable/gpg.key \
# echo \ | gpg --dearmor >/usr/share/keyrings/upstream-rspamd.gpg
# "deb [signed-by=/usr/share/keyrings/upstream-rspamd.gpg] https://rspamd.com/apt-stable/ ${VERSION_CODENAME} main" \ cat >/etc/apt/sources.list.d/upstream-rspamd.sources <<EOF
# > /etc/apt/sources.list.d/upstream-rspamd.list Types: deb
Enabled: No
URIs: https://rspamd.com/apt-stable/
Suites: ${VERSION_CODENAME}
Components: main
Signed-By: /usr/share/keyrings/upstream-rspamd.gpg
EOF
# # Refresh package index: apt-get "${QUIET}" update
# apt-get "${QUIET}" update
_log 'debug' 'Installing Rspamd' _log 'debug' 'Installing Rspamd'
apt-get "${QUIET}" install rspamd redis-server apt-get "${QUIET}" install rspamd redis-server