From 64869e8970f2b3af2061bf8f25d4ac4edf8cdb41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=8F=D0=BD=20=D0=9C=D0=B8=D0=BD=D0=BA?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Thu, 20 Nov 2025 16:13:29 -0600 Subject: [PATCH] fix(deb): Adds Include on upgrade prosody. (#16687) * fix(deb): Adds Include on upgrade prosody. * squash: Restart if config has changed. --- debian/jitsi-meet-prosody.postinst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/jitsi-meet-prosody.postinst b/debian/jitsi-meet-prosody.postinst index a06edeccc1..536281bcb5 100644 --- a/debian/jitsi-meet-prosody.postinst +++ b/debian/jitsi-meet-prosody.postinst @@ -124,10 +124,17 @@ case "$1" in ln -s $PROSODY_HOST_CONFIG /etc/prosody/conf.d/$JVB_HOSTNAME.cfg.lua fi PROSODY_CREATE_JICOFO_USER="true" + fi + + if ! grep -q "VirtualHost \"$JVB_HOSTNAME\"" $PROSODY_CONFIG_OLD; then # on some distributions main prosody config doesn't include configs # from conf.d folder enable it as this where we put our config by default + # also when upgrading to new prosody version from prosody repo we need to add it again if ! grep -q "Include \"conf\.d\/\*\.cfg.lua\"" $PROSODY_CONFIG_OLD; then echo -e "\nInclude \"conf.d/*.cfg.lua\"" >> $PROSODY_CONFIG_OLD + + # trigger a restart + PROSODY_CONFIG_PRESENT="false" fi fi