From 13646d58d5abc685f45b393b924ec9d4c01dd819 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Thu, 22 Nov 2018 21:01:20 -0500 Subject: [PATCH] ejabberd: Change BOSH port from 5280 to 5443 This is the default for new installs of ejabberd, starting with version 18.09-1. For existing installs from previous versions, the config must be upgraded to use the new port. Signed-off-by: James Valleroy Reviewed-by: Joseph Nuthalapati --- actions/ejabberd | 5 +++++ plinth/modules/ejabberd/__init__.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/actions/ejabberd b/actions/ejabberd index 1c815eb7e..c38dc35f5 100755 --- a/actions/ejabberd +++ b/actions/ejabberd @@ -154,6 +154,11 @@ def upgrade_config(): (not current_version or current_version > MOD_IRC_DEPRECATED_VERSION): conf['modules'].pop('mod_irc') + # BOSH port was changed from 5280 to 5443. + for listen_port in conf['listen']: + if listen_port['port'] == 5280: + listen_port['port'] = 5443 + # Write changes back to the file with open(EJABBERD_CONFIG, 'w') as file_handle: ruamel.yaml.round_trip_dump(conf, file_handle) diff --git a/plinth/modules/ejabberd/__init__.py b/plinth/modules/ejabberd/__init__.py index 9e2c0843d..57270c933 100644 --- a/plinth/modules/ejabberd/__init__.py +++ b/plinth/modules/ejabberd/__init__.py @@ -33,7 +33,7 @@ from plinth.utils import format_lazy from .manifest import backup, clients -version = 2 +version = 3 managed_services = ['ejabberd']