janus: Allow upgrade to 1.1

Closes: #2303.

Tests:

- In testing container, install Janus.

- Downgrade janus package to 1.0.1-1.

- Manually re-run janus setup action.

- Run "apt update".

- janus is upgraded to 1.1.1-1, and rtp_port_range is set in
  /etc/janus/janus.jcfg.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2022-12-28 11:19:11 -05:00 committed by Sunil Mohan Adapa
parent e5a6205dec
commit d3d7e233e3
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -97,9 +97,9 @@ class JanusApp(app_module.App):
if 'janus' not in packages:
return False
# Allow upgrades within 1.0.*
# Allow upgrades within 1.0.* and 1.1.*
package = packages['janus']
if Version(package['new_version']) > Version('1.1~'):
if Version(package['new_version']) > Version('1.2~'):
return False
install(['janus'], force_configuration='new')