Add support for debian 13 (trixie).

This commit is contained in:
2026-03-31 01:21:14 +02:00
parent d22d8a70b5
commit 5024b4480e
3 changed files with 340 additions and 60 deletions

View File

@@ -534,9 +534,9 @@ if [[ "$_auth" = "dovecot" ]]; then
fi
echononl "Set parameter 'dovecot_auth_port'.."
if ! $(grep -q -E "^\s*dovecot_auth_port\s*=\s*\"${DOVECOT_AUTH_PORT}\"" \
if ! $(grep -q -E "^\s*dovecot_auth_port\s*=\s*${DOVECOT_AUTH_PORT}" \
/etc/prosody/conf.avail/${FQHN_HOSTNAME}.cfg.lua 2> /dev/null); then
perl -i -n -p -e "s/^(\s*dovecot_auth_port).*/\1 = \"${DOVECOT_AUTH_PORT}\"/" \
perl -i -n -p -e "s/^(\s*dovecot_auth_port).*/\1 = ${DOVECOT_AUTH_PORT}/" \
/etc/prosody/conf.avail/${FQHN_HOSTNAME}.cfg.lua > "$log_file" 2>&1
if [[ $? -ne 0 ]]; then
echo_failed
@@ -595,6 +595,12 @@ else
if ! $_found && echo "$_line" | grep -i -E "^\s*VirtualHost\s+\"${FQHN_HOSTNAME}\"" > /dev/null 2>&1 ; then
_found=true
cat <<EOF >> ${LOCK_DIR}/${FQHN_HOSTNAME}.cfg.lua
dovecot_auth_host = "${DOVECOT_HOSTNAME}"
dovecot_auth_port = ${DOVECOT_AUTH_PORT}
auth_append_host = true
EOF
fi
if $_found && echo "$_line" | grep -i -q -E "^\s*authentication\s+=\s+" 2> /dev/null ; then
@@ -602,9 +608,6 @@ else
enabled = true
allow_registration = false
authentication = "dovecot"
dovecot_auth_host = "${DOVECOT_HOSTNAME}"
dovecot_auth_port = "${DOVECOT_AUTH_PORT}"
auth_append_host = true
EOF
_found=false
else
@@ -722,6 +725,21 @@ echo
echo -e "\033[37m\033[1mConfigure Jeetsi Meet for dovecot authentication..\033[m"
echo
echononl "Set enableJaaS = false"
if ! grep -q -E "^\s*var\s+enableJaaS\s*=\s*false" /etc/jitsi/meet/${FQHN_HOSTNAME}-config.js 2> /dev/null ; then
sed -i -E 's/^[[:space:]]*var[[:space:]]+enableJaaS[[:space:]]*=[[:space:]]*true[[:space:]]*;/var enableJaaS = false;/' /etc/jitsi/meet/${FQHN_HOSTNAME}-config.js > "$log_file" 2>&1
if [[ $? -ne 0 ]]; then
echo_failed
error "$(cat "$log_file")"
else
echo_ok
restart_needed=true
fi
else
echo_skipped
fi
_key="anonymousdomain"
# Note: set single quotes for val here if needed.
#