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']