mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] check mx ID
This commit is contained in:
parent
449dc5d89e
commit
dc0d722284
1 changed files with 3 additions and 1 deletions
|
@ -178,6 +178,7 @@ def monitor_network(units=None, human_readable=False):
|
|||
result[u] = {}
|
||||
with open('/etc/yunohost/current_host', 'r') as f:
|
||||
domain = f.readline().rstrip()
|
||||
domain = 'beudi.nohost.com'
|
||||
cmd_check_smtp = os.system('/bin/nc -z -w1 yunohost.org 25')
|
||||
if cmd_check_smtp == 0:
|
||||
smtp_check = m18n.n('network_check_smtp_ok')
|
||||
|
@ -189,7 +190,8 @@ def monitor_network(units=None, human_readable=False):
|
|||
mx_check = {}
|
||||
i = 0
|
||||
for server in answers:
|
||||
mx_check[i] = server
|
||||
mx_id = 'mx%s' %i
|
||||
mx_check[mx_id] = server
|
||||
i = i + 1
|
||||
except:
|
||||
mx_check = m18n.n('network_check_mx_ko')
|
||||
|
|
Loading…
Add table
Reference in a new issue