diff --git a/actions/xmpp b/actions/xmpp index a1b651992..b206d04c8 100755 --- a/actions/xmpp +++ b/actions/xmpp @@ -225,6 +225,7 @@ def subcommand_change_domainname(arguments): if in_hosts: if re.match(r'\s*-\s*', line): continue + in_hosts = False conffile.write(line) diff --git a/plinth/modules/xmpp/views.py b/plinth/modules/xmpp/views.py index c96eb7f2a..896e1e853 100644 --- a/plinth/modules/xmpp/views.py +++ b/plinth/modules/xmpp/views.py @@ -39,6 +39,7 @@ def get_domainname(): fqdn = socket.getfqdn() return '.'.join(fqdn.split('.')[1:]) + def before_install(): """Preseed debconf values before the packages are installed.""" domainname = get_domainname()