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 authored and Sunil Mohan Adapa committed 2022-12-29 11:12:46 -08:00
1 parent e5a6205dec
commit d3d7e233e3
1 file changed
+2 -2
+2 -2
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')