packages.sh now uses /etc/os-release to determine the release name of Debian

This commit is contained in:
georglauterbach 2023-12-04 00:34:13 +01:00
parent 52f5c25934
commit bcb06f4a89
No known key found for this signature in database
GPG key ID: F367F7C43C118578

View file

@ -5,6 +5,9 @@
# -o pipefail :: exit on error in pipes
set -eE -u -o pipefail
# shellcheck source=/dev/null
source /etc/os-release
# shellcheck source=../helpers/log.sh
source /usr/local/bin/helpers/log.sh
@ -93,10 +96,7 @@ function _install_packages() {
}
function _install_dovecot() {
declare -a DOVECOT_PACKAGES
# Dovecot packages for officially supported features.
DOVECOT_PACKAGES=(
local DOVECOT_PACKAGES=(
dovecot-core dovecot-imapd
dovecot-ldap dovecot-lmtpd dovecot-managesieved
dovecot-pop3d dovecot-sieve dovecot-solr
@ -111,7 +111,7 @@ function _install_dovecot() {
_log 'trace' 'Using Dovecot community repository'
curl https://repo.dovecot.org/DOVECOT-REPO-GPG | gpg --import
gpg --export ED409DA1 > /etc/apt/trusted.gpg.d/dovecot.gpg
echo "deb https://repo.dovecot.org/ce-2.3-latest/debian/bullseye bullseye main" > /etc/apt/sources.list.d/dovecot.list
echo "deb https://repo.dovecot.org/ce-2.3-latest/debian/${VERSION_CODENAME} ${VERSION_CODENAME} main" > /etc/apt/sources.list.d/dovecot.list
_log 'trace' 'Updating Dovecot package signatures'
apt-get "${QUIET}" update