mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
When changing hostname, also update ejabberd and jwchat.
This commit is contained in:
1 parent
e30a9b6a27
commit
974a0146f2
3 files changed
+93
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user