mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
Use FQDN instead of hostname when registering an account.
This commit is contained in:
parent
3d7de0778b
commit
7680d398a6
@ -178,11 +178,11 @@ def subcommand_register(arguments):
|
|||||||
|
|
||||||
username = arguments.username
|
username = arguments.username
|
||||||
password = arguments.password
|
password = arguments.password
|
||||||
hostname = subprocess.check_output(['hostname'])
|
fqdn = socket.getfqdn()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
output = subprocess.check_output(['ejabberdctl', 'register',
|
output = subprocess.check_output(['ejabberdctl', 'register',
|
||||||
username, hostname, password])
|
username, fqdn, password])
|
||||||
print(output.decode())
|
print(output.decode())
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
print('Failed to register XMPP account:', e.output.decode())
|
print('Failed to register XMPP account:', e.output.decode())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user