Merge pull request #66 from jvalleroy/xmpp-hostname

Update XMPP and mDNS when changing hostname
This commit is contained in:
Nick Daly committed 2014-04-18 01:28:21 +00:00
commit bd5f5c390a
4 files changed
+75

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