diff --git a/target/scripts/build/packages.sh b/target/scripts/build/packages.sh index 9ba631a2..cffe1c20 100644 --- a/target/scripts/build/packages.sh +++ b/target/scripts/build/packages.sh @@ -161,10 +161,15 @@ function _install_dovecot() { # - 2.3.21: https://salsa.debian.org/debian/dovecot/-/tree/stable/bookworm-backports _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 - echo \ - "deb [signed-by=/usr/share/keyrings/upstream-dovecot.gpg] https://repo.dovecot.org/ce-2.4-latest/debian/${VERSION_CODENAME} ${VERSION_CODENAME} main" \ - > /etc/apt/sources.list.d/upstream-dovecot.list + curl -fsSL https://repo.dovecot.org/DOVECOT-REPO-GPG-2.4 \ + | gpg --dearmor >/usr/share/keyrings/upstream-dovecot.gpg + cat >/etc/apt/sources.list.d/upstream-dovecot.sources < /usr/share/keyrings/upstream-rspamd.gpg - echo \ - "deb [signed-by=/usr/share/keyrings/upstream-rspamd.gpg] https://rspamd.com/apt-stable/ ${VERSION_CODENAME} main" \ - > /etc/apt/sources.list.d/upstream-rspamd.list + curl -fsSL https://rspamd.com/apt-stable/gpg.key \ + | gpg --dearmor >/usr/share/keyrings/upstream-rspamd.gpg + cat >/etc/apt/sources.list.d/upstream-rspamd.sources <