mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
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 <jvalleroy@mailbox.org> Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
parent
bdefb7b863
commit
13646d58d5
@ -154,6 +154,11 @@ def upgrade_config():
|
|||||||
(not current_version or current_version > MOD_IRC_DEPRECATED_VERSION):
|
(not current_version or current_version > MOD_IRC_DEPRECATED_VERSION):
|
||||||
conf['modules'].pop('mod_irc')
|
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
|
# Write changes back to the file
|
||||||
with open(EJABBERD_CONFIG, 'w') as file_handle:
|
with open(EJABBERD_CONFIG, 'w') as file_handle:
|
||||||
ruamel.yaml.round_trip_dump(conf, file_handle)
|
ruamel.yaml.round_trip_dump(conf, file_handle)
|
||||||
|
|||||||
@ -33,7 +33,7 @@ from plinth.utils import format_lazy
|
|||||||
|
|
||||||
from .manifest import backup, clients
|
from .manifest import backup, clients
|
||||||
|
|
||||||
version = 2
|
version = 3
|
||||||
|
|
||||||
managed_services = ['ejabberd']
|
managed_services = ['ejabberd']
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user