From 322618357c5e99c41038ce77ab759ff1b7a86b09 Mon Sep 17 00:00:00 2001 From: "Felix C. Stegerman" Date: Thu, 21 May 2020 15:18:22 +0200 Subject: [PATCH] jitsi-meet-tokens.postinst: fix tests --- debian/jitsi-meet-tokens.postinst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/jitsi-meet-tokens.postinst b/debian/jitsi-meet-tokens.postinst index 392fbef0b..c2ed4401e 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