Skip to content

Better handling of hostname change for XMPP service

James Valleroy requested to merge jvalleroy:hostname-change-fixes into master

These changes should fix #9 (closed) and #33 (closed).

When changing the hostname, now for ejabberd.yml I only replace the hostname when it appears as an entry in the 'hosts' section. Also for the ejabberd backup database, I only replace the hostname in specified sections, and compare the formatting before/after the hostname to avoid false matches. (For example, if a user's name happens to match the old-hostname, it won't be accidentally replaced with the new-hostname.)

Use signals to trigger xmpp actions that need to run before and after changing the hostname. So instead of calling xmpp actions from the config module, the xmpp module listens for the appropriate signals then runs the actions.

Merge request reports

Loading