When changing hostname, also update ejabberd and jwchat.

This commit is contained in:
James Valleroy committed 2014-03-26 18:50:55 -04:00
1 parent e30a9b6a27
commit 974a0146f2
3 files changed
+93

No files matched your search

+2
View File
@@ -55,7 +55,9 @@ def set_hostname(hostname):
cfg.log.info("Changing hostname to '%s'" % hostname)
try:
superuser_run("xmpp-pre-hostname-change")
superuser_run("hostname-change", hostname)
superuser_run("xmpp-hostname-change", hostname, async=True)
# don't persist/cache change unless it was saved successfuly
sys_store = filedict_con(cfg.store_file, 'sys')
sys_store['hostname'] = hostname