Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

jitsi-meet-tokens.postinst: fix tests

Felix C. Stegerman322618357c5e
diff --git a/debian/jitsi-meet-tokens.postinst b/debian/jitsi-meet-tokens.postinst
index 392fbef0ba..c2ed4401ef 100644
--- a/debian/jitsi-meet-tokens.postinst
+++ b/debian/jitsi-meet-tokens.postinst
@@ -73,9 +73,9 @@ case "$1" in
PRTRUNK_INSTALL_CHECK="$(dpkg-query -f '${Status}' -W 'prosody-trunk' 2>/dev/null | awk '{print $3}' || true)"
PR_VER_INSTALLED=$(dpkg-query -f='${Version}\n' --show prosody 2>/dev/null || true)
if [ "$PR10_INSTALL_CHECK" = "installed" ] \
- || "$PR10_INSTALL_CHECK" = "unpacked" \
- || "$PRTRUNK_INSTALL_CHECK" = "installed" \
- || "$PRTRUNK_INSTALL_CHECK" = "unpacked" \
+ || [ "$PR10_INSTALL_CHECK" = "unpacked" ] \
+ || [ "$PRTRUNK_INSTALL_CHECK" = "installed" ] \
+ || [ "$PRTRUNK_INSTALL_CHECK" = "unpacked" ] \
|| dpkg --compare-versions "$PR_VER_INSTALLED" lt "0.11" ; then
sed -i 's/module:hook_global(/module:hook(/g' /usr/share/jitsi-meet/prosody-plugins/mod_auth_token.lua
fi