jitsi-meet-tokens.postinst: fix tests
This commit is contained in:
parent
79c1358f4b
commit
322618357c
|
@ -73,9 +73,9 @@ case "$1" in
|
||||||
PRTRUNK_INSTALL_CHECK="$(dpkg-query -f '${Status}' -W 'prosody-trunk' 2>/dev/null | awk '{print $3}' || true)"
|
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)
|
PR_VER_INSTALLED=$(dpkg-query -f='${Version}\n' --show prosody 2>/dev/null || true)
|
||||||
if [ "$PR10_INSTALL_CHECK" = "installed" ] \
|
if [ "$PR10_INSTALL_CHECK" = "installed" ] \
|
||||||
|| "$PR10_INSTALL_CHECK" = "unpacked" \
|
|| [ "$PR10_INSTALL_CHECK" = "unpacked" ] \
|
||||||
|| "$PRTRUNK_INSTALL_CHECK" = "installed" \
|
|| [ "$PRTRUNK_INSTALL_CHECK" = "installed" ] \
|
||||||
|| "$PRTRUNK_INSTALL_CHECK" = "unpacked" \
|
|| [ "$PRTRUNK_INSTALL_CHECK" = "unpacked" ] \
|
||||||
|| dpkg --compare-versions "$PR_VER_INSTALLED" lt "0.11" ; then
|
|| 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
|
sed -i 's/module:hook_global(/module:hook(/g' /usr/share/jitsi-meet/prosody-plugins/mod_auth_token.lua
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue